From 0c2d90a4448dd24127b4a21fa6b959f494cdeaa3 Mon Sep 17 00:00:00 2001 From: Cristian Betivu Date: Sun, 6 Jun 2021 14:59:09 +0200 Subject: [PATCH] Add comment --- pkg/gui/view_helpers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 4f42bfc18..d85d4e3a7 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -398,6 +398,8 @@ func getTabbedView(gui *Gui) *gocui.View { if v == nil { return nil } + // if the action is invoked via the Options menu, + // we need to execute it against the parent view if v.Name() == "menu" { v = v.ParentView }