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
case $term in
urxvt*|"rxvt-unicode")
[[ -z "$xrdb" ]] &&
xrdb="$(xrdb -query)"
urxvt*|rxvt-unicode)
[[ $xrdb ]] || xrdb=$(xrdb -query)
[[ $xrdb != *".internalBorder:"* ]] &&
[[ $xrdb != *internalBorder:* ]] &&
return
padding="${xrdb/*.internalBorder:}"
padding="${padding/$'\n'*}"
padding=${xrdb/*internalBorder:}
padding=${padding/$'\n'*}
[[ $padding =~ ^[0-9]+$ ]] ||
padding=