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

View file

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