Skip to content

Commit ff368f4

Browse files
committed
hooks.py(fix[set_hook]): Remove invalid ignore_errors parameter
why: tmux set-hook does not accept -q flag (only set-option does). Verified against ~/study/c/tmux/cmd-set-option.c:65 which shows set-hook accepts "agpRt:uw" only. what: - Remove ignore_errors parameter from set_hook() signature - Remove ignore_errors flag handling code
1 parent 2ca8063 commit ff368f4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/libtmux/hooks.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ def set_hook(
113113
value: int | str,
114114
unset: bool | None = None,
115115
run: bool | None = None,
116-
ignore_errors: bool | None = None,
117116
append: bool | None = None,
118117
g: bool | None = None,
119118
global_: bool | None = None,
@@ -156,10 +155,6 @@ def set_hook(
156155
assert isinstance(run, bool)
157156
flags.append("-R")
158157

159-
if ignore_errors is not None and ignore_errors:
160-
assert isinstance(ignore_errors, bool)
161-
flags.append("-q")
162-
163158
if append is not None and append:
164159
assert isinstance(append, bool)
165160
flags.append("-a")

0 commit comments

Comments
 (0)