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()] }