1
0
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:
Jesse Duffield 2021-03-21 09:12:51 +11:00
parent 1183f68e19
commit d2b65537f6

View File

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