patch 9.1.1297: Ctrl-D scrolling can get stuck
Problem: cursor_correct() calculates a valid cursor position which
is later changed by update_topline() and causes Ctrl-D
scrolling to be stuck (Daniel Steinberg, after v9.1.0258).
Solution: Update the valid cursor position before validating topline
(Luuk van Baal).
fixes: #17106
closes: #17110
Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/move.c b/src/move.c
index 5d34947..f4bce40 100644
--- a/src/move.c
+++ b/src/move.c
@@ -3120,6 +3120,7 @@
~(VALID_WROW|VALID_WCOL|VALID_CHEIGHT|VALID_CROW);
}
}
+ check_cursor_moved(curwin);
curwin->w_valid |= VALID_TOPLINE;
}