diff options
Diffstat (limited to 'pkg/gui/context.go')
-rw-r--r-- | pkg/gui/context.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/context.go b/pkg/gui/context.go index 79db5dc26..66e28fc35 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -399,6 +399,8 @@ func (gui *Gui) onViewFocusLost(oldView *gocui.View, newView *gocui.View) error return nil } + _ = oldView.SetOriginX(0) + if oldView == gui.Views.CommitFiles && newView != gui.Views.Main && newView != gui.Views.Secondary && newView != gui.Views.Search { gui.resetWindowForView(gui.Views.CommitFiles) if err := gui.deactivateContext(gui.State.Contexts.CommitFiles); err != nil { |