Merge pull request #802 from Vaernil/fix/urxvt-terminal-font

Fix Terminal Font displaying incorrect information in urxvt, if one of the fonts has 'font' in its name
This commit is contained in:
Dylan Araps 2017-08-12 11:55:16 +10:00 committed by GitHub
commit 92aa5cf000
1 changed files with 1 additions and 1 deletions

View File

@ -1961,7 +1961,7 @@ get_term_font() {
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
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")"
# Xresources has two different font formats, this checks which