File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 4
4
"time"
5
5
6
6
"github.com/jesseduffield/gocui"
7
+ "github.com/jesseduffield/lazygit/pkg/gui/context"
7
8
"github.com/jesseduffield/lazygit/pkg/gui/types"
8
9
"github.com/jesseduffield/lazygit/pkg/tasks"
9
10
"github.com/jesseduffield/lazygit/pkg/utils"
@@ -136,5 +137,13 @@ func (gui *Gui) postRefreshUpdate(c types.Context) {
136
137
137
138
if gui .currentViewName () == c .GetViewName () {
138
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
+ if ! currentCtx .GetView ().IsSearching () {
144
+ parentCtx := currentCtx .GetParentContext ()
145
+ parentCtx .HandleRenderToMain ()
146
+ }
147
+ }
139
148
}
140
149
}
You can’t perform that action at this time.
0 commit comments