From a5a6880a19f9ae676ce5c618b24d1d552866cddb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 14 Dec 2022 06:53:14 +0530 Subject: [PATCH] Respect enable_audio_bell when a layout action fails --- kitty/tabs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/tabs.py b/kitty/tabs.py index ea682ffac..ba363c161 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -359,7 +359,8 @@ class Tab: # {{{ def layout_action(self, action_name: str, args: Sequence[str]) -> None: ret = self.current_layout.layout_action(action_name, args, self.windows) if ret is None: - ring_bell() + if get_options().enable_audio_bell: + ring_bell() return self.relayout()