Skip to content

Commit 519d778

Browse files
committed
patch 8.0.0181: with cursorbind set cursor column highlighting is off
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)
1 parent 83381f7 commit 519d778

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/move.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,6 +2841,10 @@ do_check_cursorbind(void)
28412841
restart_edit_save = restart_edit;
28422842
restart_edit = TRUE;
28432843
check_cursor();
2844+
# ifdef FEAT_SYN_HL
2845+
if (curwin->w_p_cuc)
2846+
validate_cursor();
2847+
# endif
28442848
restart_edit = restart_edit_save;
28452849
# ifdef FEAT_MBYTE
28462850
/* Correct cursor for multi-byte character. */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
181,
767769
/**/
768770
180,
769771
/**/

0 commit comments

Comments
 (0)