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.
1717- :issue: `312 `: ci: Add tmux 3.2a to CI
1818- chore: Update black to `21.6b0
1919 <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.
2022
2123libtmux 0.8.5 (2020-10-25)
2224--------------------------
Original file line number Diff line number Diff line change @@ -353,7 +353,10 @@ def select_window(self, target_window):
353353 assure ``-l``, ``-n``, ``-p`` work.
354354 """
355355
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 )
357360
358361 proc = self .cmd ('select-window' , target )
359362
You can’t perform that action at this time.
0 commit comments