vi: fix regex search compilation error

Building with FEATURE_VI_REGEX_SEARCH enabled fails.

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
Ron Yorston 2021-07-13 16:35:43 +01:00 committed by Bernhard Reutner-Fischer
parent 36feb26824
commit e6f4145f29

View File

@ -2684,7 +2684,7 @@ static char *expand_args(char *args)
static char *strchr_backslash(const char *s, int c)
{
while (*s) {
if (*s == c) {
if (*s == c)
return (char *)s;
if (*s == '\\')
if (*++s == '\0')