Skip to content

Commit

Permalink
Use window ID in windows command to make preview work
Browse files Browse the repository at this point in the history
  • Loading branch information
petersimonsson committed Oct 13, 2024
1 parent 5046106 commit 6724d5c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,7 @@ fn switch_command(config: Config, tmux: &Tmux) -> Result<()> {
}

fn windows_command(config: &Config, tmux: &Tmux) -> Result<()> {
let windows = tmux.list_windows(
"'#{?window_attached,,#{window_index} #{window_name}}'",
None,
);
let windows = tmux.list_windows("'#{?window_attached,,#{window_id} #{window_name}}'", None);

let windows: Vec<String> = windows
.replace('\'', "")
Expand Down

0 comments on commit 6724d5c

Please sign in to comment.