diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go index 4ac212045..cb6c1945d 100644 --- a/pkg/gui/files_panel.go +++ b/pkg/gui/files_panel.go @@ -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 {