Fix Terminal Font displaying incorrect information in urxvt, if one of the fonts has 'font' in its name

This commit is contained in:
vaernil 2017-08-11 21:31:16 +02:00
parent 93e4f41677
commit 0acd21732d
1 changed files with 1 additions and 1 deletions

View File

@ -1961,7 +1961,7 @@ get_term_font() {
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm") "urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
term_font="$(grep -i -F "${term/d}*font" < <(xrdb -query))" term_font="$(grep -i -F "${term/d}*font" < <(xrdb -query))"
term_font="${term_font/*font:}" term_font="${term_font/*"*font:"}"
term_font="$(trim "$term_font")" term_font="$(trim "$term_font")"
# Xresources has two different font formats, this checks which # Xresources has two different font formats, this checks which