neofetch: fix #1279
This commit is contained in:
parent
96f3aa948d
commit
1c9db4af1a
11
neofetch
11
neofetch
|
@ -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=
|
||||||
|
|
Reference in New Issue