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 @@ -356,7 +356,7 @@ def set_option(
356
356
) -> "Window" :
357
357
"""Set option for tmux window.
358
358
359
- Wraps ``$ tmux set-window- option <option> <value>``.
359
+ Wraps ``$ tmux set-option <option> <value>``.
360
360
361
361
Parameters
362
362
----------
@@ -406,7 +406,8 @@ def set_option(
406
406
flags .append ("-g" )
407
407
408
408
cmd = self .cmd (
409
- "set-window-option" ,
409
+ "set-option" ,
410
+ "-w" ,
410
411
f"-t{ self .session_id } :{ self .window_index } " ,
411
412
option ,
412
413
value ,
@@ -442,7 +443,10 @@ def show_options(self, g: t.Optional[bool] = False) -> "WindowOptionDict":
442
443
if g :
443
444
tmux_args += ("-g" ,)
444
445
445
- tmux_args += ("show-window-options" ,)
446
+ tmux_args += (
447
+ "show-options" ,
448
+ "-w-" ,
449
+ )
446
450
cmd = self .cmd (* tmux_args )
447
451
448
452
output = cmd .stdout
@@ -505,7 +509,7 @@ def show_option(
505
509
506
510
tmux_args += (option ,)
507
511
508
- cmd = self .cmd ("show-window- options" , * tmux_args )
512
+ cmd = self .cmd ("show-options" , "-w " , * tmux_args )
509
513
510
514
if len (cmd .stderr ):
511
515
handle_option_error (cmd .stderr [0 ])
You can’t perform that action at this time.
0 commit comments