mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
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:
@@ -2052,11 +2052,13 @@ showmatch (
|
||||
return;
|
||||
}
|
||||
|
||||
if ((lpos = findmatch(NULL, NUL)) == NULL) /* no match, so beep */
|
||||
vim_beep();
|
||||
else if (lpos->lnum >= curwin->w_topline && lpos->lnum < curwin->w_botline) {
|
||||
if (!curwin->w_p_wrap)
|
||||
if ((lpos = findmatch(NULL, NUL)) == NULL) { // no match, so beep
|
||||
vim_beep(BO_MATCH);
|
||||
} else if (lpos->lnum >= curwin->w_topline
|
||||
&& lpos->lnum < curwin->w_botline) {
|
||||
if (!curwin->w_p_wrap) {
|
||||
getvcol(curwin, lpos, NULL, &vcol, NULL);
|
||||
}
|
||||
if (curwin->w_p_wrap || (vcol >= curwin->w_leftcol
|
||||
&& vcol < curwin->w_leftcol + curwin->w_width)) {
|
||||
mpos = *lpos; /* save the pos, update_screen() may change it */
|
||||
|
Reference in New Issue
Block a user