commit | 8c63e0ec314ba07d54b881dc629fe19e6eda1fb8 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Sep 25 22:17:54 2018 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Sep 25 22:17:54 2018 +0200 |
tree | 5013e60903788494a6b7f9bea4cf7f1fcbf8fcc7 | |
parent | 09037503ea5f957ad23121bc61e15e4bb1765edf [diff] [blame] |
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)
diff --git a/src/move.c b/src/move.c index e9a3eb9..c072758 100644 --- a/src/move.c +++ b/src/move.c
@@ -125,6 +125,12 @@ #ifdef FEAT_SYN_HL static linenr_T last_cursorline = 0; + + void +reset_cursorline(void) +{ + last_cursorline = 0; +} #endif /*