term_font [kitty]: Fix bug with empty config

This commit is contained in:
Dylan Araps 2019-01-08 20:53:00 +02:00
parent ca9d161bc9
commit b49ecb68f8
1 changed files with 2 additions and 0 deletions

View File

@ -2921,6 +2921,8 @@ END
"kitty"*)
kitty_config="$(kitty --debug-config)"
[[ $kitty_config != *font_family* ]] && return
term_font_size="${kitty_config/*font_size}"
term_font_size="${term_font_size/$'\n'*}"
term_font="${kitty_config/*font_family}"