summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c
index 15a386493..f41c477c4 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3053,10 +3053,13 @@ shell_resized_check()
int old_Rows = Rows;
int old_Columns = Columns;
- (void)ui_get_shellsize();
- check_shellsize();
- if (old_Rows != Rows || old_Columns != Columns)
- shell_resized();
+ if (!exiting)
+ {
+ (void)ui_get_shellsize();
+ check_shellsize();
+ if (old_Rows != Rows || old_Columns != Columns)
+ shell_resized();
+ }
}
/*