Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/socket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,9 @@ func TestListSessionsOnSocketAllPanes(t *testing.T) {
return "alpha\nbeta", nil
case "list-panes":
switch args[2] {
case "alpha":
case "alpha:":
return "%1\n%3", nil
case "beta":
case "beta:":
return "%7", nil
default:
return "", errors.New("unexpected session")
Expand Down
4 changes: 2 additions & 2 deletions src/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func listSessionsOnSocket(ctx context.Context, cfg config, target socketTarget)
}

func listPaneIDs(ctx context.Context, cfg config, socketPath string, session string) ([]string, error) {
out, err := runTmuxOnSocketFn(ctx, cfg, socketPath, "list-panes", "-t", session, "-F", "#{pane_id}")
out, err := runTmuxOnSocketFn(ctx, cfg, socketPath, "list-panes", "-t", session+":", "-F", "#{pane_id}")
if err != nil {
return nil, err
}
Expand All @@ -269,7 +269,7 @@ func listPaneIDs(ctx context.Context, cfg config, socketPath string, session str
}

func activePaneID(ctx context.Context, cfg config, socketPath string, session string) (string, error) {
out, err := runTmuxOnSocketFn(ctx, cfg, socketPath, "list-panes", "-t", session, "-F", "#{pane_active} #{pane_id}")
out, err := runTmuxOnSocketFn(ctx, cfg, socketPath, "list-panes", "-t", session+":", "-F", "#{pane_active} #{pane_id}")
if err != nil {
return "", err
}
Expand Down