File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ Python 2.7 support dropped.
17
17
- :issue: `312 `: ci: Add tmux 3.2a to CI
18
18
- chore: Update black to `21.6b0
19
19
<https://github.com/psf/black/blob/21.6b0/CHANGES.md#216b0> `_
20
+ - :issue: `271 `: Fix select_window() by providing the session ID as
21
+ argument to -t.
20
22
21
23
libtmux 0.8.5 (2020-10-25)
22
24
--------------------------
Original file line number Diff line number Diff line change @@ -353,7 +353,10 @@ def select_window(self, target_window):
353
353
assure ``-l``, ``-n``, ``-p`` work.
354
354
"""
355
355
356
- target = '-t%s' % target_window
356
+ # Note that we also provide the session ID here, since cmd()
357
+ # will not automatically add it as there is already a '-t'
358
+ # argument provided.
359
+ target = '-t%s:%s' % (self ._session_id , target_window )
357
360
358
361
proc = self .cmd ('select-window' , target )
359
362
You can’t perform that action at this time.
0 commit comments