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 @@ -452,7 +452,7 @@ def set_option(
452452 ) -> Window :
453453 """Set option for tmux window.
454454
455- Wraps ``$ tmux set-window- option <option> <value>``.
455+ Wraps ``$ tmux set-option <option> <value>``.
456456
457457 Parameters
458458 ----------
@@ -502,7 +502,8 @@ def set_option(
502502 flags .append ("-g" )
503503
504504 cmd = self .cmd (
505- "set-window-option" ,
505+ "set-option" ,
506+ "-w" ,
506507 option ,
507508 value ,
508509 * flags ,
@@ -526,7 +527,10 @@ def show_options(self, g: bool | None = False) -> WindowOptionDict:
526527 if g :
527528 tmux_args += ("-g" ,)
528529
529- tmux_args += ("show-window-options" ,)
530+ tmux_args += (
531+ "show-options" ,
532+ "-w" ,
533+ )
530534 cmd = self .cmd (* tmux_args )
531535
532536 output = cmd .stdout
@@ -576,7 +580,7 @@ def show_option(
576580
577581 tmux_args += (option ,)
578582
579- cmd = self .cmd ("show-window- options" , * tmux_args )
583+ cmd = self .cmd ("show-options" , "-w " , * tmux_args )
580584
581585 if len (cmd .stderr ):
582586 handle_option_error (cmd .stderr [0 ])
You can’t perform that action at this time.
0 commit comments