aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-01-10 03:28:01 +0100
committerGitHub <noreply@github.com>2023-01-10 10:28:01 +0800
commitef6750332008b7b61dde9eeab0da454bf3323ebb (patch)
tree8b5f1e50ab2b5111022f8f9b410b377c1d2c94ad /src/nvim/search.c
parentf62da7381e9cd4dd4e926fda320132e8fccf6e48 (diff)
downloadrneovim-ef6750332008b7b61dde9eeab0da454bf3323ebb.tar.gz
rneovim-ef6750332008b7b61dde9eeab0da454bf3323ebb.tar.bz2
rneovim-ef6750332008b7b61dde9eeab0da454bf3323ebb.zip
refactor: replace char_u with char 19 (#21241)
* refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r--src/nvim/search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index 73a62429bd..4cfbab8dba 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -2254,7 +2254,7 @@ int check_linecomment(const char *line)
}
} else if (!in_str && ((p - line) < 2
|| (*(p - 1) != '\\' && *(p - 2) != '#'))
- && !is_pos_in_string((char_u *)line, (colnr_T)(p - line))) {
+ && !is_pos_in_string(line, (colnr_T)(p - line))) {
break; // found!
}
p++;
@@ -2268,7 +2268,7 @@ int check_linecomment(const char *line)
// because * / / * is an end and start of a C comment. Only
// accept the position if it is not inside a string.
if (p[1] == '/' && (p == line || p[-1] != '*' || p[2] != '*')
- && !is_pos_in_string((char_u *)line, (colnr_T)(p - line))) {
+ && !is_pos_in_string(line, (colnr_T)(p - line))) {
break;
}
p++;