Skip to content

Commit 0c3decc

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

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
@@ -191,7 +191,6 @@ def unset_hook(
191191
self,
192192
hook: str,
193193
global_: bool | None = None,
194-
ignore_errors: bool | None = None,
195194
scope: OptionScope | _DefaultOptionScope | None = DEFAULT_OPTION_SCOPE,
196195
) -> Self:
197196
"""Unset hook for tmux target.
@@ -213,10 +212,6 @@ def unset_hook(
213212

214213
flags: list[str] = ["-u"]
215214

216-
if ignore_errors is not None and ignore_errors:
217-
assert isinstance(ignore_errors, bool)
218-
flags.append("-q")
219-
220215
if global_ is not None and global_:
221216
assert isinstance(global_, bool)
222217
flags.append("-g")

0 commit comments

Comments
 (0)