diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-21 15:13:23 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-30 21:57:00 +1100 |
commit | d2e1b35eee39104c9281574ff9a4b7737f0637e2 (patch) | |
tree | 2983d7d4003de88dd811c0bd9e219968932fd372 /pkg/commands | |
parent | ef204b0adfdcdea821a9e210642aeec28d264a2f (diff) |
small fixes
Diffstat (limited to 'pkg/commands')
-rw-r--r-- | pkg/commands/models/file_change_node.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/commands/models/file_change_node.go b/pkg/commands/models/file_change_node.go index 0150e8d46..805a74439 100644 --- a/pkg/commands/models/file_change_node.go +++ b/pkg/commands/models/file_change_node.go @@ -193,8 +193,8 @@ func (s *FileChangeNode) compressAux() *FileChangeNode { } } - for i, child := range s.Children { - s.Children[i] = child.compressAux() + for i := range s.Children { + s.Children[i] = s.Children[i].compressAux() } return s @@ -271,7 +271,7 @@ func (s *FileChangeNode) NameAtDepth(depth int) string { prevName = filepath.Join(splitPrevName[depth:]...) } - return fmt.Sprintf("%s%s%s", prevName, " -> ", name) + return fmt.Sprintf("%s%s%s", prevName, " → ", name) } return name |