term_font: fix alacritty (#1535)

This commit is contained in:
Michael Straube 2020-08-17 20:03:35 +02:00 committed by GitHub
parent e33625ba92
commit d96ed38f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -3206,7 +3206,8 @@ get_term_font() {
[[ -f "${confs[0]}" ]] || return [[ -f "${confs[0]}" ]] || return
term_font="$(awk -F ':|#' '/normal:/ {getline; print}' "${confs[0]}")" term_font="$(awk '/normal:/ {while (!/family:/ || /#/)
{if (!getline) {exit}} print; exit}' "${confs[0]}")"
term_font="${term_font/*family:}" term_font="${term_font/*family:}"
term_font="${term_font/$'\n'*}" term_font="${term_font/$'\n'*}"
term_font="${term_font/\#*}" term_font="${term_font/\#*}"