From e6f4145f2961bfd500214ef1fcf07543ffacb603 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 13 Jul 2021 16:35:43 +0100 Subject: vi: fix regex search compilation error Building with FEATURE_VI_REGEX_SEARCH enabled fails. Signed-off-by: Ron Yorston Signed-off-by: Bernhard Reutner-Fischer --- editors/vi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors') diff --git a/editors/vi.c b/editors/vi.c index 5c601c759..a4b958734 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -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') -- cgit v1.2.3