diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-31 20:50:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 20:50:43 +0200 |
commit | f078a3453ae479e4d6f88f874e8d282d63c798a3 (patch) | |
tree | 60997bc19af85f1292cb0ca7e66e797737006dee /src/nvim/spell.c | |
parent | 933c80e8f9d7ff4ab634c14d370440702c7c8ed7 (diff) | |
parent | fb1edb2f5728d74ae811c6ab32395598cea5609b (diff) | |
download | rneovim-f078a3453ae479e4d6f88f874e8d282d63c798a3.tar.gz rneovim-f078a3453ae479e4d6f88f874e8d282d63c798a3.tar.bz2 rneovim-f078a3453ae479e4d6f88f874e8d282d63c798a3.zip |
Merge pull request #20007 from dundargoc/refactor/char_u/5
refactor: replace char_u with char 5
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 1259736e0e..d8bc4b22c2 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -571,7 +571,7 @@ static void find_word(matchinf_T *mip, int mode) arridx = endidx[endidxcnt]; wlen = endlen[endidxcnt]; - if (utf_head_off(ptr, ptr + wlen) > 0) { + if (utf_head_off((char *)ptr, (char *)ptr + wlen) > 0) { continue; // not at first byte of character } if (spell_iswordp(ptr + wlen, mip->mi_win)) { @@ -2479,7 +2479,7 @@ bool check_need_cap(linenr_T lnum, colnr_T col) if (lnum == 1) { need_cap = true; } else { - line = ml_get(lnum - 1); + line = (char_u *)ml_get(lnum - 1); if (*skipwhite((char *)line) == NUL) { need_cap = true; } else { |