summaryrefslogtreecommitdiffstats
path: root/pkg/gui/files_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-15 16:54:48 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-15 18:01:43 +1000
commit63e6eea9ecd52c908e75f9f1d456589d1574872e (patch)
treeb645b42f9bf5a99f52dd81bed31f1589b430c398 /pkg/gui/files_panel.go
parent50d5b9e8e70f2bb501188ee32208ecad4d042e42 (diff)
files view
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r--pkg/gui/files_panel.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go
index be95627be..6354e17bb 100644
--- a/pkg/gui/files_panel.go
+++ b/pkg/gui/files_panel.go
@@ -216,7 +216,7 @@ func (gui *Gui) allFilesStaged() bool {
return true
}
-func (gui *Gui) focusAndSelectFile(g *gocui.Gui, v *gocui.View) error {
+func (gui *Gui) focusAndSelectFile() error {
if _, err := gui.g.SetCurrentView("files"); err != nil {
return err
}
@@ -655,5 +655,5 @@ func (gui *Gui) handleCreateResetToUpstreamMenu(g *gocui.Gui, v *gocui.View) err
func (gui *Gui) onFilesPanelSearchSelect(selectedLine int) error {
gui.State.Panels.Files.SelectedLine = selectedLine
- return gui.focusAndSelectFile(gui.g, gui.getFilesView())
+ return gui.focusAndSelectFile()
}