mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -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:
parent
663bc89bbb
commit
ae12f4bad3
@ -1955,7 +1955,7 @@ edit_unputchar(void)
|
|||||||
if (pc_status == PC_STATUS_RIGHT)
|
if (pc_status == PC_STATUS_RIGHT)
|
||||||
++curwin->w_wcol;
|
++curwin->w_wcol;
|
||||||
if (pc_status == PC_STATUS_RIGHT || pc_status == PC_STATUS_LEFT)
|
if (pc_status == PC_STATUS_RIGHT || pc_status == PC_STATUS_LEFT)
|
||||||
redrawWinline(curwin, curwin->w_cursor.lnum, FALSE);
|
redrawWinline(curwin, curwin->w_cursor.lnum);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
screen_puts(pc_bytes, pc_row - msg_scrolled, pc_col, pc_attr);
|
screen_puts(pc_bytes, pc_row - msg_scrolled, pc_col, pc_attr);
|
||||||
@ -2006,7 +2006,7 @@ undisplay_dollar(void)
|
|||||||
if (dollar_vcol >= 0)
|
if (dollar_vcol >= 0)
|
||||||
{
|
{
|
||||||
dollar_vcol = -1;
|
dollar_vcol = -1;
|
||||||
redrawWinline(curwin, curwin->w_cursor.lnum, FALSE);
|
redrawWinline(curwin, curwin->w_cursor.lnum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7074,7 +7074,7 @@ check_spell_redraw(void)
|
|||||||
linenr_T lnum = spell_redraw_lnum;
|
linenr_T lnum = spell_redraw_lnum;
|
||||||
|
|
||||||
spell_redraw_lnum = 0;
|
spell_redraw_lnum = 0;
|
||||||
redrawWinline(curwin, lnum, FALSE);
|
redrawWinline(curwin, lnum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,8 +153,8 @@ redraw_for_cursorline(win_T *wp)
|
|||||||
// "w_last_cursorline" may be outdated, worst case we redraw
|
// "w_last_cursorline" may be outdated, worst case we redraw
|
||||||
// too much. This is optimized for moving the cursor around in
|
// too much. This is optimized for moving the cursor around in
|
||||||
// the current window.
|
// the current window.
|
||||||
redrawWinline(wp, wp->w_last_cursorline, FALSE);
|
redrawWinline(wp, wp->w_last_cursorline);
|
||||||
redrawWinline(wp, wp->w_cursor.lnum, FALSE);
|
redrawWinline(wp, wp->w_cursor.lnum);
|
||||||
redraw_win_later(wp, VALID);
|
redraw_win_later(wp, VALID);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -8,7 +8,7 @@ void redraw_buf_later(buf_T *buf, int type);
|
|||||||
void redraw_buf_and_status_later(buf_T *buf, int type);
|
void redraw_buf_and_status_later(buf_T *buf, int type);
|
||||||
int redraw_asap(int type);
|
int redraw_asap(int type);
|
||||||
void redraw_after_callback(int call_update_screen);
|
void redraw_after_callback(int call_update_screen);
|
||||||
void redrawWinline(win_T *wp, linenr_T lnum, int invalid);
|
void redrawWinline(win_T *wp, linenr_T lnum);
|
||||||
void reset_updating_screen(int may_resize_shell);
|
void reset_updating_screen(int may_resize_shell);
|
||||||
void update_curbuf(int type);
|
void update_curbuf(int type);
|
||||||
int update_screen(int type_arg);
|
int update_screen(int type_arg);
|
||||||
|
17
src/screen.c
17
src/screen.c
@ -492,28 +492,13 @@ redraw_after_callback(int call_update_screen)
|
|||||||
void
|
void
|
||||||
redrawWinline(
|
redrawWinline(
|
||||||
win_T *wp,
|
win_T *wp,
|
||||||
linenr_T lnum,
|
linenr_T lnum)
|
||||||
int invalid UNUSED) /* window line height is invalid now */
|
|
||||||
{
|
{
|
||||||
#ifdef FEAT_FOLDING
|
|
||||||
int i;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (wp->w_redraw_top == 0 || wp->w_redraw_top > lnum)
|
if (wp->w_redraw_top == 0 || wp->w_redraw_top > lnum)
|
||||||
wp->w_redraw_top = lnum;
|
wp->w_redraw_top = lnum;
|
||||||
if (wp->w_redraw_bot == 0 || wp->w_redraw_bot < lnum)
|
if (wp->w_redraw_bot == 0 || wp->w_redraw_bot < lnum)
|
||||||
wp->w_redraw_bot = lnum;
|
wp->w_redraw_bot = lnum;
|
||||||
redraw_win_later(wp, VALID);
|
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
|
void
|
||||||
|
@ -799,6 +799,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 */
|
||||||
|
/**/
|
||||||
|
708,
|
||||||
/**/
|
/**/
|
||||||
707,
|
707,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user