diff options
Diffstat (limited to 'pkg/gui/types/common.go')
-rw-r--r-- | pkg/gui/types/common.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/types/common.go b/pkg/gui/types/common.go index aeb1da4c0..fc6b26989 100644 --- a/pkg/gui/types/common.go +++ b/pkg/gui/types/common.go @@ -42,6 +42,10 @@ type IGuiCommon interface { PushContext(context Context, opts ...OnFocusOpts) error PopContext() error + // Removes all given contexts from the stack. If a given context is not in the stack, it is ignored. + // This is for when you have a group of contexts that are bundled together e.g. with the commit message panel. + // If you want to remove a single context, you should probably use PopContext instead. + RemoveContexts([]Context) error CurrentContext() Context CurrentStaticContext() Context IsCurrentContext(Context) bool |