mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.1.1926: cursorline not redrawn when putting a line above the cursor
Problem: Cursorline not redrawn when putting a line above the cursor. Solution: Redraw when the curor line is below a change. (closes #4862)
This commit is contained in:
parent
4c313b13fb
commit
c2b97643a8
11
src/change.c
11
src/change.c
@ -541,7 +541,6 @@ changed_common(
|
|||||||
changed_line_abv_curs_win(wp);
|
changed_line_abv_curs_win(wp);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (wp->w_cursor.lnum > lnum)
|
if (wp->w_cursor.lnum > lnum)
|
||||||
changed_line_abv_curs_win(wp);
|
changed_line_abv_curs_win(wp);
|
||||||
else if (wp->w_cursor.lnum == lnum && wp->w_cursor.col >= col)
|
else if (wp->w_cursor.lnum == lnum && wp->w_cursor.col >= col)
|
||||||
@ -592,8 +591,14 @@ changed_common(
|
|||||||
if (hasAnyFolding(wp))
|
if (hasAnyFolding(wp))
|
||||||
set_topline(wp, wp->w_topline);
|
set_topline(wp, wp->w_topline);
|
||||||
#endif
|
#endif
|
||||||
// relative numbering may require updating more
|
// Relative numbering may require updating more. Cursor line
|
||||||
if (wp->w_p_rnu)
|
// highlighting probably needs to be updated if it's below the
|
||||||
|
// change.
|
||||||
|
if (wp->w_p_rnu
|
||||||
|
#ifdef FEAT_SYN_HL
|
||||||
|
|| (wp->w_p_cul && lnum <= wp->w_last_cursorline)
|
||||||
|
#endif
|
||||||
|
)
|
||||||
redraw_win_later(wp, SOME_VALID);
|
redraw_win_later(wp, SOME_VALID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -761,6 +761,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 */
|
||||||
|
/**/
|
||||||
|
1926,
|
||||||
/**/
|
/**/
|
||||||
1925,
|
1925,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user