jesseduffield.lazygit/pkg
stk ff2a799200 Make SelectedLine/SelectedLineIdx work in staging/stagingSecondary views
While we try to keep the view's cursor position in sync with the context state's
selectedLineIdx (at least when pressing up or down), there are enough situations
where the two run out of sync; for example when initially opening the view, or
after staging a hunk, or when scrolling the view using the wheel. While it would
be possible to fix these situations to keep them always in sync, it doesn't seem
worth it, because the view's cursor position isn't really used for anything
else. So we rather special-case the SelectedLine/SelectedLineIdx functions of
ViewDriver to query the context state's selectedLineIdx directly if it is a
patch explorer context.
2023-02-15 21:22:11 +01:00
..
app feat: add GitVersion struct 2022-12-30 20:01:14 +09:00
cheatsheet integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
commands Explicitly pass --no-autosquash when rebasing 2023-02-09 18:21:11 +01:00
common introduce Common struct for passing around common stuff 2022-01-04 09:07:15 +11:00
config Fixing indent in user_config.go 2023-02-01 09:50:37 +05:30
constants update release notes 2021-04-20 18:34:47 +10:00
env clearer separation of concerns when bootstrapping application 2022-05-07 16:02:04 +10:00
gui Make SelectedLine/SelectedLineIdx work in staging/stagingSecondary views 2023-02-15 21:22:11 +01:00
i18n Merge pull request #2373 from phanithinks/clipboard_patch_option_2357 2023-01-31 17:02:46 +11:00
integration Make SelectedLine/SelectedLineIdx work in staging/stagingSecondary views 2023-02-15 21:22:11 +01:00
logs clearer separation of concerns when bootstrapping application 2022-05-07 16:02:04 +10:00
secureexec Format code to pass lint 2021-09-16 21:38:43 +08:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks add deadlock mutex package 2022-08-07 11:16:14 +10:00
test update linters 2022-03-19 12:12:57 +11:00
theme [#2279] defaultFgColor entry in theme config 2022-11-21 21:48:18 +01:00
updates pkg/updates: Fix resource availability check in Updater 2022-03-18 22:19:45 +11:00
utils fix: fix ReplacePlaceholderString 2023-01-18 20:56:22 +09:00