summaryrefslogtreecommitdiff
path: root/src/move.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-09-25 22:17:54 +0200
committerBram Moolenaar <Bram@vim.org>2018-09-25 22:17:54 +0200
commit8c63e0ec314ba07d54b881dc629fe19e6eda1fb8 (patch)
tree5013e60903788494a6b7f9bea4cf7f1fcbf8fcc7 /src/move.c
parent09037503ea5f957ad23121bc61e15e4bb1765edf (diff)
downloadvim-git-8c63e0ec314ba07d54b881dc629fe19e6eda1fb8.tar.gz
patch 8.1.0435: cursorline highlight not removed in some situationv8.1.0435
Problem: Cursorline highlight not removed in some situation. (Vitaly Yashin) Solution: Reset last_cursorline when resetting 'cursorline'. (Christian Brabandt, closes #3481)
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/move.c b/src/move.c
index e9a3eb971..c07275897 100644
--- a/src/move.c
+++ b/src/move.c
@@ -125,6 +125,12 @@ comp_botline(win_T *wp)
#ifdef FEAT_SYN_HL
static linenr_T last_cursorline = 0;
+
+ void
+reset_cursorline(void)
+{
+ last_cursorline = 0;
+}
#endif
/*