Respect enable_audio_bell when a layout action fails
This commit is contained in:
parent
da13d03b98
commit
a5a6880a19
@ -359,7 +359,8 @@ class Tab: # {{{
|
|||||||
def layout_action(self, action_name: str, args: Sequence[str]) -> None:
|
def layout_action(self, action_name: str, args: Sequence[str]) -> None:
|
||||||
ret = self.current_layout.layout_action(action_name, args, self.windows)
|
ret = self.current_layout.layout_action(action_name, args, self.windows)
|
||||||
if ret is None:
|
if ret is None:
|
||||||
ring_bell()
|
if get_options().enable_audio_bell:
|
||||||
|
ring_bell()
|
||||||
return
|
return
|
||||||
self.relayout()
|
self.relayout()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user