Skip to content

Commit 7bed10f

Browse files
committed
chore(Window): {set,show}-window-option -> {set,show}-option -w
1 parent 6d994d8 commit 7bed10f

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
@@ -356,7 +356,7 @@ def set_option(
356356
) -> "Window":
357357
"""Set option for tmux window.
358358
359-
Wraps ``$ tmux set-window-option <option> <value>``.
359+
Wraps ``$ tmux set-option <option> <value>``.
360360
361361
Parameters
362362
----------
@@ -406,7 +406,8 @@ def set_option(
406406
flags.append("-g")
407407

408408
cmd = self.cmd(
409-
"set-window-option",
409+
"set-option",
410+
"-w",
410411
f"-t{self.session_id}:{self.window_index}",
411412
option,
412413
value,
@@ -442,7 +443,10 @@ def show_options(self, g: t.Optional[bool] = False) -> "WindowOptionDict":
442443
if g:
443444
tmux_args += ("-g",)
444445

445-
tmux_args += ("show-window-options",)
446+
tmux_args += (
447+
"show-options",
448+
"-w-",
449+
)
446450
cmd = self.cmd(*tmux_args)
447451

448452
output = cmd.stdout
@@ -505,7 +509,7 @@ def show_option(
505509

506510
tmux_args += (option,)
507511

508-
cmd = self.cmd("show-window-options", *tmux_args)
512+
cmd = self.cmd("show-options", "-w", *tmux_args)
509513

510514
if len(cmd.stderr):
511515
handle_option_error(cmd.stderr[0])

0 commit comments

Comments
 (0)