neofetch: fix #1279

This commit is contained in:
Dylan Araps 2019-10-30 12:20:16 +00:00
parent 96f3aa948d
commit 1c9db4af1a
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 5 additions and 6 deletions

View File

@ -4323,15 +4323,14 @@ term_padding() {
[[ -z "$term" ]] && get_term [[ -z "$term" ]] && get_term
case $term in case $term in
urxvt*|"rxvt-unicode") urxvt*|rxvt-unicode)
[[ -z "$xrdb" ]] && [[ $xrdb ]] || xrdb=$(xrdb -query)
xrdb="$(xrdb -query)"
[[ $xrdb != *".internalBorder:"* ]] && [[ $xrdb != *internalBorder:* ]] &&
return return
padding="${xrdb/*.internalBorder:}" padding=${xrdb/*internalBorder:}
padding="${padding/$'\n'*}" padding=${padding/$'\n'*}
[[ $padding =~ ^[0-9]+$ ]] || [[ $padding =~ ^[0-9]+$ ]] ||
padding= padding=