summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-30 17:51:51 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-30 17:51:51 +0200
commite057d40d967a8223a34fe5b56ffb00dfd06e4cd4 (patch)
tree3c14b2bf97d6bb23721a33dfba7704b5fa91f6b5 /src/gui.c
parent5a4d51e6929b1bb615eaf212a091384cc266b8d7 (diff)
updated for version 7.3.1278v7.3.1278
Problem: When someone sets the screen size to a huge value with "stty" Vim runs out of memory before reducing the size. Solution: Limit Rows and Columns in more places.
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index 06a99e6cba..b667ba3e9d 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1620,6 +1620,7 @@ gui_set_shellsize(mustset, fit_to_display, direction)
un_maximize = FALSE;
#endif
}
+ limit_screen_size();
gui.num_cols = Columns;
gui.num_rows = Rows;