summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-08-29 16:26:04 +0200
committerBram Moolenaar <Bram@vim.org>2012-08-29 16:26:04 +0200
commit3633dc012919238e66c006b1037e2a1fece2b18d (patch)
tree83c86257bfee8a9479d5d0fdd8d95ed1f8c85ad7 /src/term.c
parent8f913993666b154b233ab9923845fa165d9b3260 (diff)
downloadvim-git-3633dc012919238e66c006b1037e2a1fece2b18d.tar.gz
updated for version 7.3.643v7.3.643
Problem: MS-Windows: When starting gvim maximized 'lines' and 'columns' are wrong. (Christian Robinson) Solution: Move the check for gui.starting from ui_get_shellsize() to check_shellsize().
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index 0a296fc91..38fc89b69 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3006,7 +3006,13 @@ shell_resized_check()
int old_Rows = Rows;
int old_Columns = Columns;
- if (!exiting)
+ if (!exiting
+#ifdef FEAT_GUI
+ /* Do not get the size when executing a shell command during
+ * startup. */
+ && !gui.starting
+#endif
+ )
{
(void)ui_get_shellsize();
check_shellsize();