diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-16 17:45:12 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | ed4574bda9f7f3b385f72cd5f7156d47bc28d0ea (patch) | |
tree | bf2eda757c3eaf56660d4efa538e4653315e8ea1 /pkg/gui/diffing.go | |
parent | c9ae54a8c8669483f8fbbb99ce4b139e204daa39 (diff) |
standardise getting selected item
Diffstat (limited to 'pkg/gui/diffing.go')
-rw-r--r-- | pkg/gui/diffing.go | 12 |
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 { |