1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-30 09:16:47 +02:00
lazygit/pkg/gui
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
..
context Properly fix accordion issue 2023-07-19 21:16:27 +10:00
controllers Allow checking for merge conflicts after running a custom command 2023-07-13 18:40:34 +10:00
filetree Support filtering files 2023-07-03 12:54:13 +10:00
keybindings Use same labels for keys that we use in the config 2023-05-21 10:59:16 +10:00
mergeconflicts migrate patch building tests 2023-02-25 21:37:16 +11:00
modes refactor cherry pick code to move state access out of helper 2023-04-30 13:19:53 +10:00
patch_exploring refactor patch code 2023-03-19 16:30:39 +11:00
popup Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
presentation Insert fake todo entry for a conflicting commit that is being applied 2023-06-22 18:57:58 +02:00
services/custom_commands Allow checking for merge conflicts after running a custom command 2023-07-13 18:40:34 +10:00
status lots of changes 2023-04-30 13:19:53 +10:00
style Stop hiding underscores for VSCode 2023-06-01 20:12:20 +10:00
types Properly fix accordion issue 2023-07-19 21:16:27 +10:00
background.go Ensure background refreshes don't bunch up 2023-07-10 17:30:44 +10:00
command_log_panel.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
context_config.go move some methods 2023-04-30 13:19:53 +10:00
context.go Add integration tests for searching/filtering 2023-07-03 12:54:14 +10:00
controllers.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
dummies.go feat: add GitVersion struct 2022-12-30 20:01:14 +09:00
editors.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
extras_panel.go Appease linter 2023-06-03 15:54:03 +10:00
file_watching.go Add busy count for integration tests 2023-07-08 22:54:52 +10:00
global_handlers.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
gui_common.go Properly fix accordion issue 2023-07-19 21:16:27 +10:00
gui_driver.go Add busy count for integration tests 2023-07-08 22:54:52 +10:00
gui.go Properly fix accordion issue 2023-07-19 21:16:27 +10:00
information_panel.go lots of changes 2023-04-30 13:19:53 +10:00
keybindings.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
layout.go Properly fix accordion issue 2023-07-19 21:16:27 +10:00
main_panels.go Visualize the "ignore whitespace" state in the subtitle of the diff view 2023-05-20 12:58:32 +10:00
menu_panel.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
options_map.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
pty_windows.go
pty.go Make sure scrollbars have the right size initially 2023-03-21 18:26:18 +01:00
recent_repos_panel.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
tasks_adapter.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
test_mode.go Add busy count for integration tests 2023-07-08 22:54:52 +10:00
view_helpers.go lots more refactoring 2023-04-30 13:19:53 +10:00
views.go Fix potentially wrong help text in commit message panel 2023-07-15 13:03:13 +02:00