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:
parent
36feb26824
commit
e6f4145f29
@ -2684,7 +2684,7 @@ static char *expand_args(char *args)
|
|||||||
static char *strchr_backslash(const char *s, int c)
|
static char *strchr_backslash(const char *s, int c)
|
||||||
{
|
{
|
||||||
while (*s) {
|
while (*s) {
|
||||||
if (*s == c) {
|
if (*s == c)
|
||||||
return (char *)s;
|
return (char *)s;
|
||||||
if (*s == '\\')
|
if (*s == '\\')
|
||||||
if (*++s == '\0')
|
if (*++s == '\0')
|
||||||
|
Loading…
Reference in New Issue
Block a user