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(
357357 ) -> "Window" :
358358 """Set option for tmux window.
359359
360- Wraps ``$ tmux set-window- option <option> <value>``.
360+ Wraps ``$ tmux set-option <option> <value>``.
361361
362362 Parameters
363363 ----------
@@ -407,7 +407,8 @@ def set_option(
407407 flags .append ("-g" )
408408
409409 cmd = self .cmd (
410- "set-window-option" ,
410+ "set-option" ,
411+ "-w" ,
411412 f"-t{ self .session_id } :{ self .window_index } " ,
412413 option ,
413414 value ,
@@ -443,7 +444,10 @@ def show_options(self, g: t.Optional[bool] = False) -> "WindowOptionDict":
443444 if g :
444445 tmux_args += ("-g" ,)
445446
446- tmux_args += ("show-window-options" ,)
447+ tmux_args += (
448+ "show-options" ,
449+ "-w-" ,
450+ )
447451 cmd = self .cmd (* tmux_args )
448452
449453 output = cmd .stdout
@@ -501,7 +505,7 @@ def show_option(
501505
502506 tmux_args += (option ,)
503507
504- cmd = self .cmd ("show-window- options" , * tmux_args )
508+ cmd = self .cmd ("show-options" , "-w " , * tmux_args )
505509
506510 if len (cmd .stderr ):
507511 handle_option_error (cmd .stderr [0 ])
You can’t perform that action at this time.
0 commit comments