aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-01-09 15:37:34 +0100
committerGitHub <noreply@github.com>2023-01-09 22:37:34 +0800
commit50f03773f4b9f4638489ccfd0503dc9e39e5de78 (patch)
tree2471c7596d233b66cacc36986bea0a31e9ba96ea /src/nvim/syntax.c
parent9cd7edc6ad884f59b0be9dda3523ff88f4dca705 (diff)
downloadrneovim-50f03773f4b9f4638489ccfd0503dc9e39e5de78.tar.gz
rneovim-50f03773f4b9f4638489ccfd0503dc9e39e5de78.tar.bz2
rneovim-50f03773f4b9f4638489ccfd0503dc9e39e5de78.zip
refactor: replace char_u with char 18 (#21237)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index 8f0d8d2041..87d537559a 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -2754,7 +2754,7 @@ static int check_keyword_id(char *const line, const int startcol, int *const end
// ignoring case
if (kp == NULL && syn_block->b_keywtab_ic.ht_used != 0) {
- str_foldcase((char_u *)kwp, kwlen, keyword, MAXKEYWLEN + 1);
+ str_foldcase(kwp, kwlen, keyword, MAXKEYWLEN + 1);
kp = match_keyword(keyword, &syn_block->b_keywtab_ic, cur_si);
}
@@ -3727,8 +3727,8 @@ static void add_keyword(char *const name, const int id, const int flags,
{
char name_folded[MAXKEYWLEN + 1];
const char *const name_ic = (curwin->w_s->b_syn_ic)
- ? (char *)str_foldcase((char_u *)name, (int)strlen(name), name_folded,
- sizeof(name_folded))
+ ? str_foldcase(name, (int)strlen(name), name_folded,
+ sizeof(name_folded))
: name;
keyentry_T *const kp = xmalloc(sizeof(keyentry_T) + strlen(name_ic));