# HG changeset patch # User Christian Brabandt # Date 1458425704 -3600 # Node ID 8a106a24d128c3491587db1cb4b9e8a6d2b4ff46 # Parent 4feaa149926cea6a3c4d32ba2d42c3ced1078010 commit https://github.com/vim/vim/commit/829c8e369630a7cbbdac015d8177b7fde25e2f19 Author: Bram Moolenaar Date: Sat Mar 19 23:07:23 2016 +0100 patch 7.4.1615 Problem: Build fails with tiny features. Solution: Adjust #ifdefs. diff --git a/src/normal.c b/src/normal.c --- a/src/normal.c +++ b/src/normal.c @@ -2780,7 +2780,9 @@ do_mouse( oap == NULL ? NULL : &(oap->inclusive), which_button); moved = (jump_flags & CURSOR_MOVED); in_status_line = (jump_flags & IN_STATUS_LINE); +#ifdef FEAT_WINDOWS in_sep_line = (jump_flags & IN_SEP_LINE); +#endif #ifdef FEAT_NETBEANS_INTG if (isNetbeansBuffer(curbuf) @@ -3016,6 +3018,7 @@ do_mouse( } #endif } +#ifdef FEAT_WINDOWS else if (in_sep_line) { # ifdef FEAT_MOUSESHAPE @@ -3026,6 +3029,7 @@ do_mouse( } # endif } +#endif else if ((mod_mask & MOD_MASK_MULTI_CLICK) && (State & (NORMAL | INSERT)) && mouse_has(MOUSE_VISUAL)) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -749,6 +749,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1615, +/**/ 1614, /**/ 1613, diff --git a/src/window.c b/src/window.c --- 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 hidde #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;