1
0
forked from aniani/vim

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:
Bram Moolenaar
2018-09-25 22:17:54 +02:00
parent 09037503ea
commit 8c63e0ec31
4 changed files with 14 additions and 0 deletions

View File

@@ -8306,6 +8306,11 @@ set_bool_option(
p_lrm = !p_lnr;
#endif
#ifdef FEAT_SYN_HL
else if ((int *)varp == &curwin->w_p_cul && !value && old_value)
reset_cursorline();
#endif
#ifdef FEAT_PERSISTENT_UNDO
/* 'undofile' */
else if ((int *)varp == &curbuf->b_p_udf || (int *)varp == &p_udf)