patch 8.2.5155: in diff mode windows may get out of sync
Problem: In diff mode windows may get out of sync. (Gary Johnson)
Solution: Avoid that the other window scrolls for 'cursorbind'.
diff --git a/src/move.c b/src/move.c
index c2e2712..b061a75 100644
--- a/src/move.c
+++ b/src/move.c
@@ -2952,7 +2952,12 @@
restart_edit_save = restart_edit;
restart_edit = TRUE;
check_cursor();
- validate_cursor();
+
+ // Avoid a scroll here for the cursor position, 'scrollbind' is
+ // more important.
+ if (!curwin->w_p_scb)
+ validate_cursor();
+
restart_edit = restart_edit_save;
// Correct cursor for multi-byte character.
if (has_mbyte)