summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-19 23:07:23 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-19 23:07:23 +0100
commit829c8e369630a7cbbdac015d8177b7fde25e2f19 (patch)
tree16863d92e1d909bec874249063bce9cd07fde657 /src/window.c
parent7eba3d2cbf19e731dc51652bc26099cc253d538a (diff)
downloadvim-git-829c8e369630a7cbbdac015d8177b7fde25e2f19.tar.gz
patch 7.4.1615v7.4.1615
Problem: Build fails with tiny features. Solution: Adjust #ifdefs.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index d590c57ed..9530ef502 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3446,7 +3446,9 @@ win_alloc_firstwin(win_T *oldwin)
if (curwin->w_frame == NULL)
return FAIL;
topframe = curwin->w_frame;
+#ifdef FEAT_WINDOWS
topframe->fr_width = Columns;
+#endif
topframe->fr_height = Rows - p_ch;
topframe->fr_win = curwin;
@@ -3477,8 +3479,10 @@ win_init_size(void)
{
firstwin->w_height = ROWS_AVAIL;
topframe->fr_height = ROWS_AVAIL;
+#ifdef FEAT_WINDOWS
firstwin->w_width = Columns;
topframe->fr_width = Columns;
+#endif
}
#if defined(FEAT_WINDOWS) || defined(PROTO)
@@ -4468,9 +4472,9 @@ win_alloc(win_T *after UNUSED, int hidden UNUSED)
#ifdef FEAT_WINDOWS
if (!hidden)
win_append(after, new_wp);
-#endif
new_wp->w_wincol = 0;
new_wp->w_width = Columns;
+#endif
/* position the display and the cursor at the top of the file. */
new_wp->w_topline = 1;