diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-12-08 21:23:51 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-12-08 21:27:28 +1100 |
commit | dab78c8a632fa12a24db2247a5c7096c5166c91a (patch) | |
tree | b794061dbc48f9f3e20c8de6921a82f25a6c97ab /pkg/gui/view_helpers.go | |
parent | 3f4613feb010fbafa405e8caa6b48e7e6bca3000 (diff) |
stop the files panel from stealing focus whenever files are refreshed
Diffstat (limited to 'pkg/gui/view_helpers.go')
-rw-r--r-- | pkg/gui/view_helpers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 6112a5422..bf25dbdbb 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -102,7 +102,7 @@ func (gui *Gui) newLineFocused(g *gocui.Gui, v *gocui.View) error { case "status": return gui.handleStatusSelect(g, v) case "files": - return gui.handleFileSelect(g, v) + return gui.focusAndSelectFile(g, v) case "branches": branchesView := gui.getBranchesView() switch branchesView.Context { |