commit | e057d40d967a8223a34fe5b56ffb00dfd06e4cd4 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jun 30 17:51:51 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jun 30 17:51:51 2013 +0200 |
tree | 3c14b2bf97d6bb23721a33dfba7704b5fa91f6b5 | |
parent | 5a4d51e6929b1bb615eaf212a091384cc266b8d7 [diff] [blame] |
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.
diff --git a/src/gui.c b/src/gui.c index 06a99e6..b667ba3 100644 --- a/src/gui.c +++ b/src/gui.c
@@ -1620,6 +1620,7 @@ un_maximize = FALSE; #endif } + limit_screen_size(); gui.num_cols = Columns; gui.num_rows = Rows;