jesseduffield.lazygit/pkg/gui/context
Jesse Duffield add1de4138 Use boolean field to control whether viewport is refreshed on line focus
Go really doesn't like us doing anything inheritance-y: it does not support open recursion meaning
it's really hard to re-use code. As such, here we're falling back to conditional logic.

This fixes an issue where our ListContextTrait was calling FocusLine which was intended to be
overridden by ViewportListContextTrait, but the subclassed function wasn't being called. I'm
not actually sure how this went wrong given that it was working fine in the past, but at any rate,
the new code is easy to follow.
2023-05-25 17:09:18 +10:00
..
traits do not highlight line if there are no items to display 2022-04-16 15:19:32 +10:00
base_context.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
basic_view_model.go use generics to DRY up context code 2022-03-19 12:12:57 +11:00
branches_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
commit_files_context.go fix rendering of commit files view 2023-04-30 13:19:53 +10:00
commit_message_context.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
confirmation_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
context.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
context_common.go split context common from helper common 2023-04-30 13:19:53 +10:00
dynamic_title_builder.go show namesake for child views 2022-03-26 18:00:46 +11:00
list_context_trait.go Use boolean field to control whether viewport is refreshed on line focus 2023-05-25 17:09:18 +10:00
local_commits_context.go Use boolean field to control whether viewport is refreshed on line focus 2023-05-25 17:09:18 +10:00
menu_context.go Right-align key labels in menu 2023-05-21 12:09:43 +10:00
merge_conflicts_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
parent_context_mgr.go refactor contexts code 2022-03-17 19:13:40 +11:00
patch_explorer_context.go move more actions into controller 2023-04-30 13:19:53 +10:00
reflog_commits_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
remote_branches_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
remotes_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
setup.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
simple_context.go remove context callback opts 2023-04-30 13:19:53 +10:00
stash_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
sub_commits_context.go Use boolean field to control whether viewport is refreshed on line focus 2023-05-25 17:09:18 +10:00
submodules_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
suggestions_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
tags_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
view_trait.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
working_tree_context.go split context common from helper common 2023-04-30 13:19:53 +10:00