Mercurial > vim
comparison src/gui.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 | bbe4bd64c68c |
children | 50dbef5e774a |
comparison
equal
deleted
inserted
replaced
5069:44f2eb39f49e | 5070:cf52d2a8c05c |
---|---|
1618 && height + gui.char_height >= screen_h)) | 1618 && height + gui.char_height >= screen_h)) |
1619 /* don't unmaximize if at maximum size */ | 1619 /* don't unmaximize if at maximum size */ |
1620 un_maximize = FALSE; | 1620 un_maximize = FALSE; |
1621 #endif | 1621 #endif |
1622 } | 1622 } |
1623 limit_screen_size(); | |
1623 gui.num_cols = Columns; | 1624 gui.num_cols = Columns; |
1624 gui.num_rows = Rows; | 1625 gui.num_rows = Rows; |
1625 | 1626 |
1626 min_width = base_width + MIN_COLUMNS * gui.char_width; | 1627 min_width = base_width + MIN_COLUMNS * gui.char_width; |
1627 min_height = base_height + MIN_LINES * gui.char_height; | 1628 min_height = base_height + MIN_LINES * gui.char_height; |