aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-11 17:50:52 +0800
committerGitHub <noreply@github.com>2022-11-11 17:50:52 +0800
commit0d8e8d36ec7d3f4967f27389b4b94edf3ba57433 (patch)
tree94f62c40fbb8714ab4f811682e450fd8d7affd68 /src/nvim/ui.c
parentfc7ac688c397b5f748920597fcc70fe46e907944 (diff)
downloadrneovim-0d8e8d36ec7d3f4967f27389b4b94edf3ba57433.tar.gz
rneovim-0d8e8d36ec7d3f4967f27389b4b94edf3ba57433.tar.bz2
rneovim-0d8e8d36ec7d3f4967f27389b4b94edf3ba57433.zip
vim-patch:8.2.1919: assert_fails() setting emsg_silent changes normal execution (#20998)
Problem: Assert_fails() setting emsg_silent changes normal execution. Solution: Use a separate flag in_assert_fails. https://github.com/vim/vim/commit/28ee892ac4197421b3317f195512ca64cc56a5b4 Cherry-pick no_wait_return from patch 9.0.0846. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index eb59d72e43..bee8d461a7 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -315,7 +315,7 @@ void vim_beep(unsigned val)
{
called_vim_beep = true;
- if (emsg_silent == 0) {
+ if (emsg_silent == 0 && !in_assert_fails) {
if (!((bo_flags & val) || (bo_flags & BO_ALL))) {
static int beeps = 0;
static uint64_t start_time = 0;