1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-14 11:23:09 +02:00
lazygit/pkg/gui/types
Jesse Duffield a5ee61c117 Properly fix accordion issue
The true issue was that we were focusing the line in the view before it gets resized in the layout function.
This meant if the view was squashed in accordion mode, the view wouldn't know how to set the cursor/origin to
focus the line.

Now we've got a queue of 'after layout' functions i.e. functions to call at the end of the layout function,
right before views are drawn.

The only caveat is that we can't have an infinite buffer so we're arbitrarily capping it at 1000 and dropping
functions if we exceed that limit. But that really should never happen.
2023-07-19 21:16:27 +10:00
..
common_commands.go start moving commit panel handlers into controller 2022-03-17 19:13:40 +11:00
common.go Properly fix accordion issue 2023-07-19 21:16:27 +10:00
context.go Scroll to top when filtering and retain selection when cancelling filter 2023-07-03 12:54:14 +10:00
keybindings.go lots more refactoring 2023-04-30 13:19:53 +10:00
modes.go controller for viewing sub commits 2022-03-17 19:13:40 +11:00
ref.go fix: fix ambiguous refname 2022-05-13 21:05:51 +09:00
refresh.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
rendering.go Visualize the "ignore whitespace" state in the subtitle of the diff view 2023-05-20 12:58:32 +10:00
search_state.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
suggestion.go support labels for suggestions which are distinct from values 2020-11-28 20:48:17 +11:00
views.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00