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

View file

@ -3206,7 +3206,8 @@ get_term_font() {
[[ -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/$'\n'*}"
term_font="${term_font/\#*}"