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
|
||||
|
||||
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=
|
||||
|
|
Reference in New Issue