diff options
-rw-r--r-- | src/nvim/regexp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index 90da02bb1b..4e5ae403d6 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -1199,10 +1199,7 @@ char_u *skip_regexp(char_u *startp, int dirc, int magic, char_u **newp) *newp = vim_strsave(startp); p = *newp + (p - startp); } - if (*newp != NULL) - STRMOVE(p, p + 1); - else - ++p; + STRMOVE(p, p + 1); } else ++p; /* skip next character */ if (*p == 'v') |