general: Fix issue with URxvt and no internal border. Closes #1174

This commit is contained in:
Dylan Araps 2019-01-20 05:36:25 +02:00
parent 415ef5d4ae
commit 0b812fbc5d
1 changed files with 1 additions and 0 deletions

View File

@ -4197,6 +4197,7 @@ term_padding() {
case "$term" in
urxvt*|"rxvt-unicode")
[[ -z "$xrdb" ]] && xrdb="$(xrdb -query)"
[[ $xrdb != *.internalBorder:* ]] && return
padding="${xrdb/*.internalBorder:}"
((padding=${padding/$'\n'*}))
;;