summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2006-02-14 22:29:30 +0000
committervimboss <devnull@localhost>2006-02-14 22:29:30 +0000
commit2bc36141731671139d765af729a97a44b0aea4a9 (patch)
tree5882ec62c5c5c6047021a94e74e4797139944a95 /src/main.c
parent42339a50a287afb05913b01923839843dd95965b (diff)
downloadvim-7-0197.tar.gz
updated for version 7.0197v7.0197v7-0197
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index 0b96d16c..81e41b69 100644
--- a/src/main.c
+++ b/src/main.c
@@ -297,9 +297,11 @@ main
TIME_MSG("window checked");
/*
- * Allocate the first window and buffer. Can't do much without it.
+ * Allocate the first window and buffer.
+ * Can't do anything without it, exit when it fails.
*/
- win_alloc_first();
+ if (win_alloc_first() == FAIL)
+ mch_exit(0);
init_yank(); /* init yank buffers */
@@ -505,12 +507,7 @@ main
if (usingNetbeans)
Columns += 2; /* leave room for glyph gutter */
#endif
- firstwin->w_height = Rows - p_ch;
- topframe->fr_height = Rows - p_ch;
-#ifdef FEAT_VERTSPLIT
- firstwin->w_width = Columns;
- topframe->fr_width = Columns;
-#endif
+ win_init_size();
#ifdef FEAT_DIFF
/* Set the 'diff' option now, so that it can be checked for in a .vimrc
* file. There is no buffer yet though. */