summaryrefslogtreecommitdiffstats
path: root/pkg/gui/global_handlers.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-16 18:22:55 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit88d329c52a9c42fa9abf623d236eee11d5877346 (patch)
tree390cda91bccde4d09fd1632bd3367b661aa53780 /pkg/gui/global_handlers.go
parentfd8a455aff852bdda6daaea82287a10fe882c97c (diff)
WIP
Diffstat (limited to 'pkg/gui/global_handlers.go')
-rw-r--r--pkg/gui/global_handlers.go3
1 files changed, 3 insertions, 0 deletions
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())