Skip to content

Commit 04aeece

Browse files
committed
chore(Window): {set,show}-window-option -> {set,show}-option -w
1 parent 86661d0 commit 04aeece

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/libtmux/window.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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])

0 commit comments

Comments
 (0)