mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-12 11:15:00 +02:00
handle nothing selected
This commit is contained in:
parent
1183f68e19
commit
d2b65537f6
@ -525,6 +525,9 @@ func (gui *Gui) refreshStateFiles() error {
|
||||
|
||||
selectedNode := gui.getSelectedStatusNode()
|
||||
getPaths := func(node *models.StatusLineNode) []string {
|
||||
if node == nil {
|
||||
return nil
|
||||
}
|
||||
if node.File != nil && node.File.IsRename() {
|
||||
return node.File.Names()
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user