Skip to content

Commit 6544a32

Browse files
committed
Fix(selector): Remove premature basename filtering for current session
Basename filtering excluded aliased paths that shared a name with the current session. The shouldSkipEntry function already handles this correctly using display names.
1 parent 35c3075 commit 6544a32

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

internal/selector/builder.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package selector
33
import (
44
"fmt"
55
"os"
6-
"path/filepath"
76

87
"github.com/Pairadux/muxly/internal/models"
98
"github.com/Pairadux/muxly/internal/tmux"
@@ -68,11 +67,6 @@ func (b *Builder) collectAllPaths(flagDepth int, ignoreSet models.StringSet, cur
6867
return nil
6968
}
7069

71-
name := filepath.Base(path)
72-
if name == currentSession {
73-
return nil
74-
}
75-
7670
info := models.PathInfo{Path: path, Prefix: prefix}
7771
allPaths = append(allPaths, info)
7872
return nil

0 commit comments

Comments
 (0)