diff options
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r-- | src/nvim/search.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index c30e69391f..0d4ab8d63c 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -2324,7 +2324,7 @@ int check_linecomment(const char_u *line) if (vim_strchr(p, ';') != NULL) { // there may be comments bool in_str = false; // inside of string - while ((p = vim_strpbrk(p, (char_u *)"\";")) != NULL) { + while ((p = (char_u *)strpbrk((char *)p, "\";")) != NULL) { if (*p == '"') { if (in_str) { if (*(p - 1) != '\\') { // skip escaped quote |