@@ -194,7 +194,7 @@ def select_pane(self, target_pane: t.Union[str, int]) -> t.Optional["Pane"]:
194194 :class:`Pane`
195195 """
196196 if target_pane in ["-l" , "-U" , "-D" , "-L" , "-R" ]:
197- proc = self .cmd ("select-pane" , target_pane , target = self . window_id )
197+ proc = self .cmd ("select-pane" , target_pane )
198198 else :
199199 proc = self .cmd ("select-pane" , target = target_pane )
200200
@@ -378,7 +378,7 @@ def select_layout(self, layout: t.Optional[str] = None) -> "Window":
378378 if layout : # tmux allows select-layout without args
379379 cmd .append (layout )
380380
381- proc = self .cmd (* cmd , target = f" { self . session_id } : { self . window_index } " )
381+ proc = self .cmd (* cmd )
382382
383383 if proc .stderr :
384384 raise exc .LibTmuxException (proc .stderr )
@@ -412,7 +412,6 @@ def set_window_option(self, option: str, value: t.Union[int, str]) -> "Window":
412412 "set-window-option" ,
413413 option ,
414414 value ,
415- target = f"{ self .session_id } :{ self .window_index } " ,
416415 )
417416
418417 if isinstance (cmd .stderr , list ) and len (cmd .stderr ):
@@ -920,10 +919,7 @@ def kill_window(self) -> None:
920919 category = DeprecationWarning ,
921920 stacklevel = 2 ,
922921 )
923- proc = self .cmd (
924- "kill-window" ,
925- target = f"{ self .session_id } :{ self .window_index } " ,
926- )
922+ proc = self .cmd ("kill-window" )
927923
928924 if proc .stderr :
929925 raise exc .LibTmuxException (proc .stderr )
0 commit comments