mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
some more refactoring
This commit is contained in:
@ -53,15 +53,11 @@ func (gui *Gui) currentDiffTerminals() []string {
|
||||
}
|
||||
return nil
|
||||
default:
|
||||
context := gui.currentSideListContext()
|
||||
if context == nil {
|
||||
itemId := gui.getSideContextSelectedItemId()
|
||||
if itemId == "" {
|
||||
return nil
|
||||
}
|
||||
item, ok := context.GetSelectedItem()
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
return []string{item.ID()}
|
||||
return []string{itemId}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user