We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4e5ebb commit 06db652Copy full SHA for 06db652
pkg/gui/view_helpers.go
@@ -4,6 +4,7 @@ import (
4
"time"
5
6
"github.com/jesseduffield/gocui"
7
+ "github.com/jesseduffield/lazygit/pkg/gui/context"
8
"github.com/jesseduffield/lazygit/pkg/gui/types"
9
"github.com/jesseduffield/lazygit/pkg/tasks"
10
"github.com/jesseduffield/lazygit/pkg/utils"
@@ -136,5 +137,11 @@ func (gui *Gui) postRefreshUpdate(c types.Context) {
136
137
138
if gui.currentViewName() == c.GetViewName() {
139
c.HandleFocus(types.OnFocusOpts{})
140
+ } else {
141
+ currentCtx := gui.State.ContextMgr.Current()
142
+ if currentCtx.GetKey() == context.NORMAL_MAIN_CONTEXT_KEY || currentCtx.GetKey() == context.NORMAL_SECONDARY_CONTEXT_KEY {
143
+ parentCtx := currentCtx.GetParentContext()
144
+ parentCtx.HandleRenderToMain()
145
+ }
146
}
147
0 commit comments