summaryrefslogtreecommitdiffstats
path: root/pkg/gui/status_tree.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/status_tree.go')
-rw-r--r--pkg/gui/status_tree.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/status_tree.go b/pkg/gui/status_tree.go
index 6ff489566..c0abbe0c0 100644
--- a/pkg/gui/status_tree.go
+++ b/pkg/gui/status_tree.go
@@ -54,11 +54,13 @@ func GetFlatTreeFromStatusFiles(files []*models.File) *models.StatusLineNode {
root := &models.StatusLineNode{}
for _, file := range files {
root.Children = append(root.Children, &models.StatusLineNode{
- Name: file.Name,
+ Name: file.GetPath(),
Path: file.GetPath(),
File: file,
})
}
+ root.Sort()
+
return root
}