When cursorbind
, cursorline
, cursorcolumn
are set in two windows, cursorline
, cursorcolumn
does not synchronize unless some events (e.g. scrolling or switching window) occur.
The gif of example is shown at vim-jp/issues#1009
https://github.com/vim/vim/pull/1372
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
Hi Bram,
To me it looks like only the addition of validate_cursor() is needed.
You're right.
I confirmed that just adding validate_cursor()
works as intended.
diff --git a/src/move.c b/src/move.c index 912e51ccd..7519da4c9 100644 --- a/src/move.c +++ b/src/move.c @@ -2841,6 +2841,7 @@ do_check_cursorbind(void) restart_edit_save = restart_edit; restart_edit = TRUE; check_cursor(); + validate_cursor(); restart_edit = restart_edit_save; # ifdef FEAT_MBYTE /* Correct cursor for multi-byte character. */