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/os_unix.c b/src/os_unix.c index 8a7ae10..2223faf 100644 --- a/src/os_unix.c +++ b/src/os_unix.c
@@ -3777,6 +3777,7 @@ Rows = rows; Columns = columns; + limit_screen_size(); return OK; }