]> granicus.if.org Git - vim/commitdiff
patch 8.2.4745: using wrong flag for using bell in the terminal v8.2.4745
authorBram Moolenaar <Bram@vim.org>
Wed, 13 Apr 2022 13:28:07 +0000 (14:28 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 13 Apr 2022 13:28:07 +0000 (14:28 +0100)
Problem:    Using wrong flag for using bell in the terminal.
Solution:   Change to use BO_TERM.

src/misc1.c
src/terminal.c
src/version.c

index 82dbbba6e684d2b1a7eaae7f3e993c86a94c4471..6dbad3fc73d55837f0900b14bf6d8d8218ef456a 100644 (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;
index 9f9e84ac3a2cf267d9ea5c67f76453e44c3a2849..658d5e0b9171d29017a5184308f91cfdfb540d24 100644 (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;
 }
 
index 584410a92a7149139638b983e091245ad5613938..7a8f52f7a73d8ba96a6ff8f7001c27805365c129 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4745,
 /**/
     4744,
 /**/