vim-patch:7.4.793

Problem:    Can't specify when not to ring the bell.
Solution:   Add the 'belloff' option. (Christian Brabandt)

165bc69d1b
This commit is contained in:
Johan Klokkhammer Helsing
2015-10-16 21:28:12 +02:00
parent e9de70e4ea
commit 3bb2662669
12 changed files with 195 additions and 90 deletions

View File

@@ -2582,21 +2582,22 @@ void msgmore(long n)
void beep_flush(void)
{
if (emsg_silent == 0) {
flush_buffers(FALSE);
vim_beep();
flush_buffers(false);
vim_beep(BO_ERROR);
}
}
/*
* give a warning for an error
*/
void vim_beep(void)
// Give a warning for an error
// val is one of the BO_ values, e.g., BO_OPER
void vim_beep(unsigned val)
{
if (emsg_silent == 0) {
if (p_vb) {
ui_visual_bell();
} else {
ui_putc(BELL);
if (!((bo_flags & val) || (bo_flags & BO_ALL))) {
if (p_vb) {
ui_visual_bell();
} else {
ui_putc(BELL);
}
}
/* When 'verbose' is set and we are sourcing a script or executing a