summaryrefslogtreecommitdiffstats
path: root/pkg/gui/types
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-30 20:03:08 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commit0a8cff6ab68dc92b98136c4ebe5c6bc7f8f1b3c7 (patch)
treea68b6ffa7a886d73346f6305c76db0ffe54cbe7b /pkg/gui/types
parente2f5fe101621c0162791d6ea312ef8093616f59c (diff)
some more refactoring
Diffstat (limited to 'pkg/gui/types')
-rw-r--r--pkg/gui/types/common.go2
-rw-r--r--pkg/gui/types/context.go2
2 files changed, 1 insertions, 3 deletions
diff --git a/pkg/gui/types/common.go b/pkg/gui/types/common.go
index 9289c4f2d..4dbb0eca3 100644
--- a/pkg/gui/types/common.go
+++ b/pkg/gui/types/common.go
@@ -6,8 +6,6 @@ import (
"github.com/jesseduffield/lazygit/pkg/config"
)
-// if Go let me do private struct embedding of structs with public fields (which it should)
-// I would just do that. But alas.
type ControllerCommon struct {
*common.Common
IGuiCommon
diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go
index ffdcb49a7..fcbadfd22 100644
--- a/pkg/gui/types/context.go
+++ b/pkg/gui/types/context.go
@@ -61,8 +61,8 @@ type IController interface {
type IListContext interface {
HasKeybindings
- GetSelectedItem() (ListItem, bool)
+ GetSelectedItemId() string
HandlePrevLine() error
HandleNextLine() error
HandleScrollLeft() error