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 ,
@@ -443,7 +444,10 @@ def show_options(self, g: t.Optional[bool] = False) -> "WindowOptionDict":
443
444
if g :
444
445
tmux_args += ("-g" ,)
445
446
446
- tmux_args += ("show-window-options" ,)
447
+ tmux_args += (
448
+ "show-options" ,
449
+ "-w-" ,
450
+ )
447
451
cmd = self .cmd (* tmux_args )
448
452
449
453
output = cmd .stdout
@@ -501,7 +505,7 @@ def show_option(
501
505
502
506
tmux_args += (option ,)
503
507
504
- cmd = self .cmd ("show-window- options" , * tmux_args )
508
+ cmd = self .cmd ("show-options" , "-w " , * tmux_args )
505
509
506
510
if len (cmd .stderr ):
507
511
handle_option_error (cmd .stderr [0 ])
You can’t perform that action at this time.
0 commit comments