summaryrefslogtreecommitdiff
path: root/src/move.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-01-14 14:54:33 +0100
committerBram Moolenaar <Bram@vim.org>2017-01-14 14:54:33 +0100
commit519d7785f4437762c07b2e04217f83a069a8c663 (patch)
tree7ca69627b795340c5436a4e73989dd0d6e052b0f /src/move.c
parent83381f7129aca00bc2dd24527f160bc6a60d70af (diff)
downloadvim-git-519d7785f4437762c07b2e04217f83a069a8c663.tar.gz
patch 8.0.0181: with cursorbind set cursor column highlighting is offv8.0.0181
Problem: When 'cursorbind' and 'cursorcolumn' are both on, the column highlignt in non-current windows is wrong. Solution: Add validate_cursor(). (Masanori Misono, closes #1372)
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/move.c b/src/move.c
index 912e51ccd..86b19aafc 100644
--- a/src/move.c
+++ b/src/move.c
@@ -2841,6 +2841,10 @@ do_check_cursorbind(void)
restart_edit_save = restart_edit;
restart_edit = TRUE;
check_cursor();
+# ifdef FEAT_SYN_HL
+ if (curwin->w_p_cuc)
+ validate_cursor();
+# endif
restart_edit = restart_edit_save;
# ifdef FEAT_MBYTE
/* Correct cursor for multi-byte character. */