mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-14 11:23:09 +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. |
||
---|---|---|
.. | ||
traits | ||
base_context.go | ||
branches_context.go | ||
commit_files_context.go | ||
commit_message_context.go | ||
confirmation_context.go | ||
context_common.go | ||
context.go | ||
dynamic_title_builder.go | ||
filtered_list_view_model.go | ||
filtered_list.go | ||
list_context_trait.go | ||
list_view_model.go | ||
local_commits_context.go | ||
menu_context.go | ||
merge_conflicts_context.go | ||
parent_context_mgr.go | ||
patch_explorer_context.go | ||
reflog_commits_context.go | ||
remote_branches_context.go | ||
remotes_context.go | ||
search_trait.go | ||
setup.go | ||
simple_context.go | ||
stash_context.go | ||
sub_commits_context.go | ||
submodules_context.go | ||
suggestions_context.go | ||
tags_context.go | ||
view_trait.go | ||
working_tree_context.go |