PageDown PageUp don't change if caret still on screen
This commit is contained in:
@@ -470,5 +470,8 @@ void MoveCursorByPageSize(Window *window, int direction, bool shift = false) {
|
||||
}
|
||||
}
|
||||
|
||||
SetStoredOffsetFromTop(window, is_on_screen_res);
|
||||
IsOnScreenResult r = IsMainCaretOnScreen(window);
|
||||
if (!r.caret_on_screen) {
|
||||
SetStoredOffsetFromTop(window, is_on_screen_res);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user