Skip to content

Commit

Permalink
patch 7.4.1615
Browse files Browse the repository at this point in the history
Problem:    Build fails with tiny features.
Solution:   Adjust #ifdefs.
  • Loading branch information
brammool committed Mar 19, 2016
1 parent 7eba3d2 commit 829c8e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/normal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -3016,6 +3018,7 @@ do_mouse(
}
#endif
}
#ifdef FEAT_WINDOWS
else if (in_sep_line)
{
# ifdef FEAT_MOUSESHAPE
Expand All @@ -3026,6 +3029,7 @@ do_mouse(
}
# endif
}
#endif
else if ((mod_mask & MOD_MASK_MULTI_CLICK) && (State & (NORMAL | INSERT))
&& mouse_has(MOUSE_VISUAL))
{
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1615,
/**/
1614,
/**/
Expand Down
6 changes: 5 additions & 1 deletion src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 829c8e3

Please sign in to comment.