summaryrefslogtreecommitdiffstats
path: root/pkg/gui/filetree
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-03-21 15:25:54 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-03-30 21:57:00 +1100
commite7af3bf55df8493e6c327353c88e1acee876cad0 (patch)
tree2803b9b1f5c7c9f458ff81281c1afbc59d82bc48 /pkg/gui/filetree
parente52cec9cdf17ffb27fc3521f9abd977603d31753 (diff)
refactor
Diffstat (limited to 'pkg/gui/filetree')
-rw-r--r--pkg/gui/filetree/file_change_manager.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/filetree/file_change_manager.go b/pkg/gui/filetree/file_change_manager.go
index 925398827..fd2134b18 100644
--- a/pkg/gui/filetree/file_change_manager.go
+++ b/pkg/gui/filetree/file_change_manager.go
@@ -12,6 +12,11 @@ import (
const EXPANDED_ARROW = "▼"
const COLLAPSED_ARROW = "►"
+const INNER_ITEM = "├─ "
+const LAST_ITEM = "└─ "
+const NESTED = "│ "
+const NOTHING = " "
+
type FileChangeManager struct {
Files []*models.File
Tree *models.FileChangeNode
@@ -73,11 +78,6 @@ func (m *FileChangeManager) Render(diffName string, submoduleConfigs []*models.S
return m.renderAux(m.Tree, "", -1, diffName, submoduleConfigs)
}
-const INNER_ITEM = "├─ "
-const LAST_ITEM = "└─ "
-const NESTED = "│ "
-const NOTHING = " "
-
func (m *FileChangeManager) IsCollapsed(s *models.FileChangeNode) bool {
return m.CollapsedPaths[s.GetPath()]
}