mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.1.0435: cursorline highlight not removed in some situation
Problem: Cursorline highlight not removed in some situation. (Vitaly Yashin) Solution: Reset last_cursorline when resetting 'cursorline'. (Christian Brabandt, closes #3481)
This commit is contained in:
parent
09037503ea
commit
8c63e0ec31
@ -125,6 +125,12 @@ comp_botline(win_T *wp)
|
|||||||
|
|
||||||
#ifdef FEAT_SYN_HL
|
#ifdef FEAT_SYN_HL
|
||||||
static linenr_T last_cursorline = 0;
|
static linenr_T last_cursorline = 0;
|
||||||
|
|
||||||
|
void
|
||||||
|
reset_cursorline(void)
|
||||||
|
{
|
||||||
|
last_cursorline = 0;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -8306,6 +8306,11 @@ set_bool_option(
|
|||||||
p_lrm = !p_lnr;
|
p_lrm = !p_lnr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef FEAT_SYN_HL
|
||||||
|
else if ((int *)varp == &curwin->w_p_cul && !value && old_value)
|
||||||
|
reset_cursorline();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef FEAT_PERSISTENT_UNDO
|
#ifdef FEAT_PERSISTENT_UNDO
|
||||||
/* 'undofile' */
|
/* 'undofile' */
|
||||||
else if ((int *)varp == &curbuf->b_p_udf || (int *)varp == &p_udf)
|
else if ((int *)varp == &curbuf->b_p_udf || (int *)varp == &p_udf)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* move.c */
|
/* move.c */
|
||||||
|
void reset_cursorline(void);
|
||||||
void update_topline_redraw(void);
|
void update_topline_redraw(void);
|
||||||
void update_topline(void);
|
void update_topline(void);
|
||||||
void update_curswant(void);
|
void update_curswant(void);
|
||||||
|
@ -794,6 +794,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 */
|
||||||
|
/**/
|
||||||
|
435,
|
||||||
/**/
|
/**/
|
||||||
434,
|
434,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user