0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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:
Bram Moolenaar
2013-06-30 17:51:51 +02:00
parent 5a4d51e692
commit e057d40d96
7 changed files with 24 additions and 8 deletions

View File

@@ -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;