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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user