0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.1.0708: third argument for redrawWinline() is always FALSE

Problem:    Third argument for redrawWinline() is always FALSE.
Solution:   Drop the argument. (neovim #9479)
This commit is contained in:
Bram Moolenaar
2019-01-09 20:51:04 +01:00
parent 663bc89bbb
commit ae12f4bad3
5 changed files with 9 additions and 22 deletions

View File

@@ -492,28 +492,13 @@ redraw_after_callback(int call_update_screen)
void
redrawWinline(
win_T *wp,
linenr_T lnum,
int invalid UNUSED) /* window line height is invalid now */
linenr_T lnum)
{
#ifdef FEAT_FOLDING
int i;
#endif
if (wp->w_redraw_top == 0 || wp->w_redraw_top > lnum)
wp->w_redraw_top = lnum;
if (wp->w_redraw_bot == 0 || wp->w_redraw_bot < lnum)
wp->w_redraw_bot = lnum;
redraw_win_later(wp, VALID);
#ifdef FEAT_FOLDING
if (invalid)
{
/* A w_lines[] entry for this lnum has become invalid. */
i = find_wl_entry(wp, lnum);
if (i >= 0)
wp->w_lines[i].wl_valid = FALSE;
}
#endif
}
void