# HG changeset patch # User Bram Moolenaar # Date 1649856605 -7200 # Node ID f4d2dcfd18ac71601f031f959989d2316022e182 # Parent bf158b210d203099ab42c69e4caf8c96dc249879 patch 8.2.4745: using wrong flag for using bell in the terminal Commit: https://github.com/vim/vim/commit/aae9762b2cbcae8dea454e1701d00ea0f614175e Author: Bram Moolenaar Date: Wed Apr 13 14:28:07 2022 +0100 patch 8.2.4745: using wrong flag for using bell in the terminal Problem: Using wrong flag for using bell in the terminal. Solution: Change to use BO_TERM. diff --git a/src/misc1.c b/src/misc1.c --- a/src/misc1.c +++ b/src/misc1.c @@ -1095,11 +1095,10 @@ beep_flush(void) } /* - * Give a warning for an error. + * Give a warning for an error. "val" is one of the BO_ values, e.g., BO_OPER. */ void -vim_beep( - unsigned val) // one of the BO_ values, e.g., BO_OPER +vim_beep(unsigned val) { #ifdef FEAT_EVAL called_vim_beep = TRUE; diff --git a/src/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -3391,7 +3391,7 @@ handle_postponed_scrollback(term_T *term static int handle_bell(void *user UNUSED) { - vim_beep(BO_SH); + vim_beep(BO_TERM); return 0; } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4745, +/**/ 4744, /**/ 4743,