feat(terminal)!: make 'belloff' and 'visualbell' apply to terminal bell (#30859)

vim-patch:8.2.4744: a terminal window can't use the bell
vim-patch:8.2.4745: using wrong flag for using bell in the terminal

BREAKING CHANGE: Bells from :terminal are now silent by default, unless
'belloff' option doesn't contain "term" or "all".
This commit is contained in:
zeertzjq
2024-10-20 07:59:43 +08:00
committed by GitHub
parent 4833a63929
commit 3cf602486c
8 changed files with 52 additions and 3 deletions

View File

@ -430,6 +430,7 @@ vim.go.bsk = vim.go.backupskip
--- separated list of items. For each item that is present, the bell
--- will be silenced. This is most useful to specify specific events in
--- insert mode to be silenced.
--- You can also make it flash by using 'visualbell'.
---
--- item meaning when present ~
--- all All events.
@ -453,6 +454,7 @@ vim.go.bsk = vim.go.backupskip
--- register Unknown register after <C-R> in `Insert-mode`.
--- shell Bell from shell output `:!`.
--- spell Error happened on spell suggest.
--- term Bell from `:terminal` output.
--- wildmode More matches in `cmdline-completion` available
--- (depends on the 'wildmode' setting).
---