1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

standardise getting selected item

This commit is contained in:
Jesse Duffield
2020-08-16 17:45:12 +10:00
parent c9ae54a8c8
commit ed4574bda9
7 changed files with 67 additions and 88 deletions

View File

@ -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 {