patch 7.4.793
Problem: Can't specify when not to ring the bell.
Solution: Add the 'belloff' option. (Christian Brabandt)
diff --git a/src/normal.c b/src/normal.c
index d5a011d..599b12a 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -1880,7 +1880,7 @@
VIsual_reselect = FALSE; /* don't reselect now */
if (empty_region_error)
{
- vim_beep();
+ vim_beep(BO_OPER);
CancelRedo();
}
else
@@ -1897,7 +1897,7 @@
{
if (!gui_yank)
{
- vim_beep();
+ vim_beep(BO_OPER);
CancelRedo();
}
}
@@ -1915,7 +1915,7 @@
VIsual_reselect = FALSE; /* don't reselect now */
if (empty_region_error)
{
- vim_beep();
+ vim_beep(BO_OPER);
CancelRedo();
}
else
@@ -1989,7 +1989,7 @@
case OP_ROT13:
if (empty_region_error)
{
- vim_beep();
+ vim_beep(BO_OPER);
CancelRedo();
}
else
@@ -2023,7 +2023,7 @@
#ifdef FEAT_VISUALEXTRA
if (empty_region_error)
{
- vim_beep();
+ vim_beep(BO_OPER);
CancelRedo();
}
else
@@ -2056,7 +2056,7 @@
restart_edit = restart_edit_save;
}
#else
- vim_beep();
+ vim_beep(BO_OPER);
#endif
break;
@@ -2066,7 +2066,7 @@
if (empty_region_error)
#endif
{
- vim_beep();
+ vim_beep(BO_OPER);
CancelRedo();
}
#ifdef FEAT_VISUALEXTRA
@@ -5359,7 +5359,7 @@
* Ignore 'Q' in Visual mode, just give a beep.
*/
if (VIsual_active)
- vim_beep();
+ vim_beep(BO_EX);
else if (!checkclearop(cap->oap))
do_exmode(FALSE);
}
@@ -9055,7 +9055,7 @@
redraw_curbuf_later(INVERTED);
}
else if (no_reason)
- vim_beep();
+ vim_beep(BO_ESC);
clearop(cap->oap);
/* A CTRL-C is often used at the start of a menu. When 'insertmode' is