From af09223dd5cd50c5b2a2fe846632a7a0a6e02e1e Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Thu, 1 Apr 2021 00:24:41 +1100 Subject: refactor --- pkg/gui/list_context.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/gui/list_context.go') diff --git a/pkg/gui/list_context.go b/pkg/gui/list_context.go index 39fa8f6bf..ac345dd97 100644 --- a/pkg/gui/list_context.go +++ b/pkg/gui/list_context.go @@ -30,6 +30,11 @@ type ListContext struct { WindowName string } +type IListPanelState interface { + SetSelectedLineIdx(int) + GetSelectedLineIdx() int +} + type ListItem interface { // ID is a SHA when the item is a commit, a filename when the item is a file, 'stash@{4}' when it's a stash entry, 'my_branch' when it's a branch ID() string -- cgit v1.2.3