From e057d40d967a8223a34fe5b56ffb00dfd06e4cd4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 30 Jun 2013 17:51:51 +0200 Subject: updated for version 7.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. --- src/gui_gtk_x11.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui_gtk_x11.c') diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 853947c1bb..05295bf084 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -3698,6 +3698,7 @@ gui_mch_open(void) p_window = h - 1; Rows = h; } + limit_screen_size(); pixel_width = (guint)(gui_get_base_width() + Columns * gui.char_width); pixel_height = (guint)(gui_get_base_height() + Rows * gui.char_height); -- cgit v1.2.3