summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c
index d8c21f43c..37ccc37e9 100644
--- a/src/search.c
+++ b/src/search.c
@@ -2817,6 +2817,8 @@ showmatch(
if (*p == NUL)
return;
}
+ if (*p == NUL)
+ return;
if ((lpos = findmatch(NULL, NUL)) == NULL) // no match, so beep
vim_beep(BO_MATCH);