comparison src/gui_gtk_x11.c @ 5070:cf52d2a8c05c v7.3.1278

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.
author Bram Moolenaar <bram@vim.org>
date Sun, 30 Jun 2013 17:51:51 +0200
parents 0c940b6f2828
children a43a8262e1ce
comparison
equal deleted inserted replaced
5069:44f2eb39f49e 5070:cf52d2a8c05c
3696 { 3696 {
3697 if (p_window > (long)h - 1 || !option_was_set((char_u *)"window")) 3697 if (p_window > (long)h - 1 || !option_was_set((char_u *)"window"))
3698 p_window = h - 1; 3698 p_window = h - 1;
3699 Rows = h; 3699 Rows = h;
3700 } 3700 }
3701 limit_screen_size();
3701 3702
3702 pixel_width = (guint)(gui_get_base_width() + Columns * gui.char_width); 3703 pixel_width = (guint)(gui_get_base_width() + Columns * gui.char_width);
3703 pixel_height = (guint)(gui_get_base_height() + Rows * gui.char_height); 3704 pixel_height = (guint)(gui_get_base_height() + Rows * gui.char_height);
3704 3705
3705 pixel_width += get_menu_tool_width(); 3706 pixel_width += get_menu_tool_width();