mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-11-30 09:16:47 +02:00
a5ee61c117
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. |
||
---|---|---|
.. | ||
common_commands.go | ||
common.go | ||
context.go | ||
keybindings.go | ||
modes.go | ||
ref.go | ||
refresh.go | ||
rendering.go | ||
search_state.go | ||
suggestion.go | ||
views.go |