From 88d329c52a9c42fa9abf623d236eee11d5877346 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 16 Aug 2020 18:22:55 +1000 Subject: [PATCH] WIP --- pkg/gui/global_handlers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/gui/global_handlers.go b/pkg/gui/global_handlers.go index 8282cea2d..ef98b98e6 100644 --- a/pkg/gui/global_handlers.go +++ b/pkg/gui/global_handlers.go @@ -113,6 +113,9 @@ func (gui *Gui) handleMouseDownMain(g *gocui.Gui, v *gocui.View) error { switch g.CurrentView().Name() { case "files": + // set filename, set primary/secondary selected, set line number, then switch context + // I'll need to know it was changed though. + // Could I pass something along to the context change? return gui.enterFile(false, v.SelectedLineIdx()) case "commitFiles": return gui.enterCommitFile(v.SelectedLineIdx())