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

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=