Commit b49ecb68 authored by Dylan Araps's avatar Dylan Araps

term_font [kitty]: Fix bug with empty config

parent ca9d161b
...@@ -2921,6 +2921,8 @@ END ...@@ -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}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment