jesseduffield.lazygit/pkg
Raphaele Salvatore Licciardo 8114943cb1 Fix page navigation scroll behavior to keep cursor at top/bottom
When pressing '.' (next page) or ',' (previous page), the selection
now stays at the bottom or top of the viewport respectively, instead
of being centered which caused items to scroll off. If the selection is not
already on the last/first line of the view, '.'/',' moves it there without
scrolling.

This implements a special case for page navigation as suggested by
the maintainer in issue #5017, keeping the cursor position consistent
with user expectations for page-based navigation.

Fixes #5017

Co-authored-by: Stefan Haller <stefan@haller-berlin.de>
2025-11-09 19:37:38 +01:00
..
app Show a better error message if the temp directory is not writeable 2025-10-16 10:04:47 +02:00
cheatsheet Fix keybinding cheatsheets with regard to pipe characters in key or description 2025-11-01 09:54:32 +01:00
commands Update dead link for debugging regex to regex101.com 2025-11-07 16:00:22 +01:00
common Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
config Add config option gui.skipSwitchWorktreeOnCheckoutWarning 2025-10-14 14:19:54 +02:00
constants Make the links in the status panel point to the current version rather than master 2024-03-22 08:13:59 +01:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Fix page navigation scroll behavior to keep cursor at top/bottom 2025-11-09 19:37:38 +01:00
i18n Update translations from Crowdin 2025-10-31 19:56:01 +01:00
integration Add no-ff merge option 2025-10-19 21:24:28 +02:00
jsonschema Wrap long comment lines in Config.md 2025-10-10 21:25:02 +02:00
logs Clean up build tags 2025-08-14 20:40:44 +02:00
snake Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
tasks Improve CPU usage when flicking through large diffs 2025-08-11 18:07:21 +02:00
theme Highlight inactive selection in bold 2024-06-23 14:43:13 +02:00
updates Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
utils Cleanup: remove duplicate test case 2025-08-08 11:24:43 +02:00