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 ,
@@ -450,7 +451,10 @@ def show_options(self, g: t.Optional[bool] = False) -> "WindowOptionDict":
450451 if g :
451452 tmux_args += ("-g" ,)
452453
453- tmux_args += ("show-window-options" ,)
454+ tmux_args += (
455+ "show-options" ,
456+ "-w-" ,
457+ )
454458 cmd = self .cmd (* tmux_args )
455459
456460 output = cmd .stdout
@@ -508,7 +512,7 @@ def show_option(
508512
509513 tmux_args += (option ,)
510514
511- cmd = self .cmd ("show-window- options" , * tmux_args )
515+ cmd = self .cmd ("show-options" , "-w " , * tmux_args )
512516
513517 if len (cmd .stderr ):
514518 handle_option_error (cmd .stderr [0 ])
You can’t perform that action at this time.
0 commit comments