Skip to content

Commit f5e4c82

Browse files
committed
fix: dir name truncation
1 parent b6ec8fe commit f5e4c82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filetree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func collapseTree(t *tree.Tree) *tree.Tree {
209209
const dirIcon = " "
210210

211211
func truncateTree(t *tree.Tree, depth int) *tree.Tree {
212-
newT := tree.Root(utils.TruncateString(dirIcon+t.Value(), constants.OpenFileTreeWidth-depth*2-lipgloss.Width(dirIcon)))
212+
newT := tree.Root(utils.TruncateString(dirIcon+t.Value(), constants.OpenFileTreeWidth-depth*2))
213213
children := t.Children()
214214
for i := 0; i < children.Length(); i++ {
215215
child := children.At(i)

0 commit comments

Comments
 (0)