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 @@ -357,7 +357,7 @@ def set_option(
357
357
) -> "Window" :
358
358
"""Set option for tmux window.
359
359
360
- Wraps ``$ tmux set-window- option <option> <value>``.
360
+ Wraps ``$ tmux set-option <option> <value>``.
361
361
362
362
Parameters
363
363
----------
@@ -407,7 +407,8 @@ def set_option(
407
407
flags .append ("-g" )
408
408
409
409
cmd = self .cmd (
410
- "set-window-option" ,
410
+ "set-option" ,
411
+ "-w" ,
411
412
f"-t{ self .session_id } :{ self .window_index } " ,
412
413
option ,
413
414
value ,
@@ -450,7 +451,10 @@ def show_options(self, g: t.Optional[bool] = False) -> "WindowOptionDict":
450
451
if g :
451
452
tmux_args += ("-g" ,)
452
453
453
- tmux_args += ("show-window-options" ,)
454
+ tmux_args += (
455
+ "show-options" ,
456
+ "-w-" ,
457
+ )
454
458
cmd = self .cmd (* tmux_args )
455
459
456
460
output = cmd .stdout
@@ -508,7 +512,7 @@ def show_option(
508
512
509
513
tmux_args += (option ,)
510
514
511
- cmd = self .cmd ("show-window- options" , * tmux_args )
515
+ cmd = self .cmd ("show-options" , "-w " , * tmux_args )
512
516
513
517
if len (cmd .stderr ):
514
518
handle_option_error (cmd .stderr [0 ])
You can’t perform that action at this time.
0 commit comments