PageDown PageUp don't change if caret still on screen

This commit is contained in:
Krzosa Karol
2026-01-31 07:30:27 +01:00
parent 017b70f3e6
commit d5099cee38

View File

@@ -470,5 +470,8 @@ void MoveCursorByPageSize(Window *window, int direction, bool shift = false) {
} }
} }
IsOnScreenResult r = IsMainCaretOnScreen(window);
if (!r.caret_on_screen) {
SetStoredOffsetFromTop(window, is_on_screen_res); SetStoredOffsetFromTop(window, is_on_screen_res);
}
} }