mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user