mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
updated for version 7.4.550
Problem: curs_rows() function is always called with the second argument false. Solution: Remove the argument. (Christian Brabandt) validate_botline_win() can then also be removed.
This commit is contained in:
26
src/move.c
26
src/move.c
@@ -23,8 +23,7 @@ static void comp_botline __ARGS((win_T *wp));
|
|||||||
static void redraw_for_cursorline __ARGS((win_T *wp));
|
static void redraw_for_cursorline __ARGS((win_T *wp));
|
||||||
static int scrolljump_value __ARGS((void));
|
static int scrolljump_value __ARGS((void));
|
||||||
static int check_top_offset __ARGS((void));
|
static int check_top_offset __ARGS((void));
|
||||||
static void curs_rows __ARGS((win_T *wp, int do_botline));
|
static void curs_rows __ARGS((win_T *wp));
|
||||||
static void validate_botline_win __ARGS((win_T *wp));
|
|
||||||
static void validate_cheight __ARGS((void));
|
static void validate_cheight __ARGS((void));
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -608,17 +607,6 @@ validate_botline()
|
|||||||
comp_botline(curwin);
|
comp_botline(curwin);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Make sure the value of wp->w_botline is valid.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
validate_botline_win(wp)
|
|
||||||
win_T *wp;
|
|
||||||
{
|
|
||||||
if (!(wp->w_valid & VALID_BOTLINE))
|
|
||||||
comp_botline(wp);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mark curwin->w_botline as invalid (because of some change in the buffer).
|
* Mark curwin->w_botline as invalid (because of some change in the buffer).
|
||||||
*/
|
*/
|
||||||
@@ -678,20 +666,17 @@ validate_cline_row()
|
|||||||
update_topline();
|
update_topline();
|
||||||
check_cursor_moved(curwin);
|
check_cursor_moved(curwin);
|
||||||
if (!(curwin->w_valid & VALID_CROW))
|
if (!(curwin->w_valid & VALID_CROW))
|
||||||
curs_rows(curwin, FALSE);
|
curs_rows(curwin);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compute wp->w_cline_row and wp->w_cline_height, based on the current value
|
* Compute wp->w_cline_row and wp->w_cline_height, based on the current value
|
||||||
* of wp->w_topline.
|
* of wp->w_topline.
|
||||||
*
|
|
||||||
* Returns OK when cursor is in the window, FAIL when it isn't.
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
curs_rows(wp, do_botline)
|
curs_rows(wp)
|
||||||
win_T *wp;
|
win_T *wp;
|
||||||
int do_botline; /* also compute w_botline */
|
|
||||||
{
|
{
|
||||||
linenr_T lnum;
|
linenr_T lnum;
|
||||||
int i;
|
int i;
|
||||||
@@ -810,9 +795,6 @@ curs_rows(wp, do_botline)
|
|||||||
redraw_for_cursorline(curwin);
|
redraw_for_cursorline(curwin);
|
||||||
wp->w_valid |= VALID_CROW|VALID_CHEIGHT;
|
wp->w_valid |= VALID_CROW|VALID_CHEIGHT;
|
||||||
|
|
||||||
/* validate botline too, if update_screen doesn't do it */
|
|
||||||
if (do_botline && all_invalid)
|
|
||||||
validate_botline_win(wp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -986,7 +968,7 @@ curs_columns(may_scroll)
|
|||||||
* Next make sure that w_cline_row is valid.
|
* Next make sure that w_cline_row is valid.
|
||||||
*/
|
*/
|
||||||
if (!(curwin->w_valid & VALID_CROW))
|
if (!(curwin->w_valid & VALID_CROW))
|
||||||
curs_rows(curwin, FALSE);
|
curs_rows(curwin);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compute the number of virtual columns.
|
* Compute the number of virtual columns.
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
550,
|
||||||
/**/
|
/**/
|
||||||
549,
|
549,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user