Skip to content

Commit 02727a7

Browse files
committed
chore(Window): {set,show}-window-option -> {set,show}-option -w
1 parent fd42329 commit 02727a7

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
@@ -450,7 +450,7 @@ def set_option(
450450
) -> Window:
451451
"""Set option for tmux window.
452452
453-
Wraps ``$ tmux set-window-option <option> <value>``.
453+
Wraps ``$ tmux set-option <option> <value>``.
454454
455455
Parameters
456456
----------
@@ -500,7 +500,8 @@ def set_option(
500500
flags.append("-g")
501501

502502
cmd = self.cmd(
503-
"set-window-option",
503+
"set-option",
504+
"-w",
504505
option,
505506
value,
506507
*flags,
@@ -524,7 +525,10 @@ def show_options(self, g: bool | None = False) -> WindowOptionDict:
524525
if g:
525526
tmux_args += ("-g",)
526527

527-
tmux_args += ("show-window-options",)
528+
tmux_args += (
529+
"show-options",
530+
"-w",
531+
)
528532
cmd = self.cmd(*tmux_args)
529533

530534
output = cmd.stdout
@@ -574,7 +578,7 @@ def show_option(
574578

575579
tmux_args += (option,)
576580

577-
cmd = self.cmd("show-window-options", *tmux_args)
581+
cmd = self.cmd("show-options", "-w", *tmux_args)
578582

579583
if len(cmd.stderr):
580584
handle_option_error(cmd.stderr[0])

0 commit comments

Comments
 (0)