1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2022-04-13 14:28:07 +01:00
parent 77771d33f4
commit aae9762b2c
3 changed files with 5 additions and 4 deletions

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4745,
/**/
4744,
/**/