Skip to content

Commit

Permalink
Respect enable_audio_bell when a layout action fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Dec 14, 2022
1 parent da13d03 commit a5a6880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kitty/tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ def reset_window_sizes(self) -> None:
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()

Expand Down

0 comments on commit a5a6880

Please sign in to comment.