term: Fix errors if user disables terminal function.

This commit is contained in:
Dylan Araps 2017-07-31 22:31:23 +10:00
parent b6cde78199
commit e52b01f2dc

View file

@ -1715,7 +1715,7 @@ get_term() {
} }
get_term_font() { get_term_font() {
((term_run != 1)) && get_term ((term_run != 1)) && get_term 2>/dev/null
case "$term" in case "$term" in
"alacritty"*) "alacritty"*)
@ -3782,7 +3782,7 @@ get_term_padding() {
# #
# Note: This issue only seems to affect # Note: This issue only seems to affect
# URxvt. # URxvt.
((term_run != 1)) && get_term ((term_run != 1)) && get_term 2>/dev/null
case "$term" in case "$term" in
"URxvt"*) "URxvt"*)