Merge pull request #984 from MindTooth/final_kitty_fix

RFC: kitty: This got to be the last fix...
This commit is contained in:
Dylan Araps 2018-05-17 02:47:33 +00:00 committed by GitHub
commit a31e656f82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -2910,10 +2910,11 @@ END
fi
term_font="$(awk '/^[\S\n_#]+?font_family\s+?/
{ $1 = ""; gsub(/^[[:space:]]/, ""); font = $0 }
/^[\S\n_#]+?font_size\s+?\d+?/
{ size = $2 } END { print font " " size}' \
term_font="$(awk '/^([[:space:]]*|[^#_])font_family[[:space:]]+/ \
{ $1 = ""; gsub(/^[[:space:]]/, ""); font = $0 } \
/^([[:space:]]*|[^#_])font_size[[:space:]]+/ \
{ size = $2 } \
END { print font " " size}' \
"${kitty_file}")"
;;