summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-13 14:28:07 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-13 14:28:07 +0100
commitaae9762b2cbcae8dea454e1701d00ea0f614175e (patch)
tree9400bbca00947b43ab6785c3eb15190869556ecb
parent77771d33f44bfb9f75eb857bd2f2bb4c2860cac3 (diff)
patch 8.2.4745: using wrong flag for using bell in the terminalv8.2.4745
Problem: Using wrong flag for using bell in the terminal. Solution: Change to use BO_TERM.
-rw-r--r--src/misc1.c5
-rw-r--r--src/terminal.c2
-rw-r--r--src/version.c2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 82dbbba6e6..6dbad3fc73 100644
--- 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
index 9f9e84ac3a..658d5e0b91 100644
--- 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
index 584410a92a..7a8f52f7a7 100644
--- 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,