File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ def set_option(
401401 ) -> Window :
402402 """Set option for tmux window.
403403
404- Wraps ``$ tmux set-window- option <option> <value>``.
404+ Wraps ``$ tmux set-option <option> <value>``.
405405
406406 Parameters
407407 ----------
@@ -451,7 +451,8 @@ def set_option(
451451 flags .append ("-g" )
452452
453453 cmd = self .cmd (
454- "set-window-option" ,
454+ "set-option" ,
455+ "-w" ,
455456 option ,
456457 value ,
457458 * flags ,
@@ -475,7 +476,10 @@ def show_options(self, g: bool | None = False) -> WindowOptionDict:
475476 if g :
476477 tmux_args += ("-g" ,)
477478
478- tmux_args += ("show-window-options" ,)
479+ tmux_args += (
480+ "show-options" ,
481+ "-w" ,
482+ )
479483 cmd = self .cmd (* tmux_args )
480484
481485 output = cmd .stdout
@@ -525,7 +529,7 @@ def show_option(
525529
526530 tmux_args += (option ,)
527531
528- cmd = self .cmd ("show-window- options" , * tmux_args )
532+ cmd = self .cmd ("show-options" , "-w " , * tmux_args )
529533
530534 if len (cmd .stderr ):
531535 handle_option_error (cmd .stderr [0 ])
You can’t perform that action at this time.
0 commit comments