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
1 changed files with 2 additions and 2 deletions

View File

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