summaryrefslogtreecommitdiffstats
path: root/pkg/gui/diffing.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-16 17:45:12 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commited4574bda9f7f3b385f72cd5f7156d47bc28d0ea (patch)
treebf2eda757c3eaf56660d4efa538e4653315e8ea1 /pkg/gui/diffing.go
parentc9ae54a8c8669483f8fbbb99ce4b139e204daa39 (diff)
standardise getting selected item
Diffstat (limited to 'pkg/gui/diffing.go')
-rw-r--r--pkg/gui/diffing.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/pkg/gui/diffing.go b/pkg/gui/diffing.go
index 109d2d0de..435215f21 100644
--- a/pkg/gui/diffing.go
+++ b/pkg/gui/diffing.go
@@ -46,17 +46,11 @@ func (gui *Gui) currentDiffTerminals() []string {
names := []string{}
switch currentView.Name() {
case "files":
- // not supporting files for now
- // file, err := gui.getSelectedFile()
- // if err == nil {
- // names = append(names, file.Name)
- // }
+ // not supporting files for now
+
case "commitFiles":
// not supporting commit files for now
- // file := gui.getSelectedCommitFile()
- // if file != nil {
- // names = append(names, file.Name)
- // }
+
case "commits":
var commit *commands.Commit
switch gui.getCommitsView().Context {