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 @@ -450,7 +450,7 @@ def set_option(
450
450
) -> Window :
451
451
"""Set option for tmux window.
452
452
453
- Wraps ``$ tmux set-window- option <option> <value>``.
453
+ Wraps ``$ tmux set-option <option> <value>``.
454
454
455
455
Parameters
456
456
----------
@@ -500,7 +500,8 @@ def set_option(
500
500
flags .append ("-g" )
501
501
502
502
cmd = self .cmd (
503
- "set-window-option" ,
503
+ "set-option" ,
504
+ "-w" ,
504
505
option ,
505
506
value ,
506
507
* flags ,
@@ -524,7 +525,10 @@ def show_options(self, g: bool | None = False) -> WindowOptionDict:
524
525
if g :
525
526
tmux_args += ("-g" ,)
526
527
527
- tmux_args += ("show-window-options" ,)
528
+ tmux_args += (
529
+ "show-options" ,
530
+ "-w" ,
531
+ )
528
532
cmd = self .cmd (* tmux_args )
529
533
530
534
output = cmd .stdout
@@ -574,7 +578,7 @@ def show_option(
574
578
575
579
tmux_args += (option ,)
576
580
577
- cmd = self .cmd ("show-window- options" , * tmux_args )
581
+ cmd = self .cmd ("show-options" , "-w " , * tmux_args )
578
582
579
583
if len (cmd .stderr ):
580
584
handle_option_error (cmd .stderr [0 ])
You can’t perform that action at this time.
0 commit comments