kitty font parsing where font name has whitespaces

This commit is contained in:
Lucius Hu 2019-06-03 00:23:05 -04:00
parent 614a2d1b70
commit accccca8e9
No known key found for this signature in database
GPG Key ID: 22EBDD4ADBA40CF5
1 changed files with 1 additions and 1 deletions

View File

@ -2981,7 +2981,7 @@ END
kitty_config="$(kitty --debug-config)" kitty_config="$(kitty --debug-config)"
[[ "$kitty_config" != *font_family* ]] && return [[ "$kitty_config" != *font_family* ]] && return
term_font="$(awk '/^font_family|^font_size/ {printf $2 " "}' <<< "$kitty_config")" term_font="$(awk '/^font_family|^font_size/ {$1="";gsub("^ *","",$0);print $0}' <<< "$kitty_config")"
;; ;;
"konsole" | "yakuake") "konsole" | "yakuake")