mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.0078
This commit is contained in:
38
src/window.c
38
src/window.c
@@ -50,7 +50,6 @@ static void frame_insert __ARGS((frame_T *before, frame_T *frp));
|
|||||||
static void frame_remove __ARGS((frame_T *frp));
|
static void frame_remove __ARGS((frame_T *frp));
|
||||||
#ifdef FEAT_VERTSPLIT
|
#ifdef FEAT_VERTSPLIT
|
||||||
static void win_new_width __ARGS((win_T *wp, int width));
|
static void win_new_width __ARGS((win_T *wp, int width));
|
||||||
static int win_minheight __ARGS((win_T *wp));
|
|
||||||
static void win_goto_ver __ARGS((int up, long count));
|
static void win_goto_ver __ARGS((int up, long count));
|
||||||
static void win_goto_hor __ARGS((int left, long count));
|
static void win_goto_hor __ARGS((int left, long count));
|
||||||
#endif
|
#endif
|
||||||
@@ -1080,43 +1079,6 @@ win_split_ins(size, flags, newwin, dir)
|
|||||||
|
|
||||||
#endif /* FEAT_WINDOWS */
|
#endif /* FEAT_WINDOWS */
|
||||||
|
|
||||||
#ifdef FEAT_VERTSPLIT
|
|
||||||
/*
|
|
||||||
* Return minimal height for window "wp" and windows east of it.
|
|
||||||
* Takes into account the eastbound windws can be split, each of them
|
|
||||||
* requireing p_wmh lines. Doesn't count status lines.
|
|
||||||
*/
|
|
||||||
static int
|
|
||||||
win_minheight(wp)
|
|
||||||
win_T *wp;
|
|
||||||
{
|
|
||||||
int minheight = p_wmh;
|
|
||||||
int n;
|
|
||||||
win_T *wp1, *wp2;
|
|
||||||
|
|
||||||
wp1 = wp;
|
|
||||||
for (;;)
|
|
||||||
{
|
|
||||||
wp1 = wp1->w_next;
|
|
||||||
if (wp1 == NULL)
|
|
||||||
break;
|
|
||||||
n = p_wmh;
|
|
||||||
wp2 = wp1;
|
|
||||||
for (;;)
|
|
||||||
{
|
|
||||||
wp2 = wp2->w_next;
|
|
||||||
if (wp2 == NULL)
|
|
||||||
break;
|
|
||||||
n += win_minheight(wp2);
|
|
||||||
}
|
|
||||||
if (n > minheight)
|
|
||||||
minheight = n;
|
|
||||||
}
|
|
||||||
return minheight;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(FEAT_WINDOWS) || defined(PROTO)
|
#if defined(FEAT_WINDOWS) || defined(PROTO)
|
||||||
/*
|
/*
|
||||||
* Check if "win" is a pointer to an existing window.
|
* Check if "win" is a pointer to an existing window.
|
||||||
|
Reference in New Issue
Block a user