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/getchar.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/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 0a9457ef35..4d7339f3b5 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -2569,7 +2569,7 @@ static int vgetorpeek(bool advance) ptr = get_cursor_line_ptr(); chartabsize_T cts; init_chartabsize_arg(&cts, curwin, - curwin->w_cursor.lnum, 0, ptr, ptr); + curwin->w_cursor.lnum, 0, (char *)ptr, (char *)ptr); while ((char_u *)cts.cts_ptr < ptr + curwin->w_cursor.col) { if (!ascii_iswhite(*cts.cts_ptr)) { curwin->w_wcol = cts.cts_vcol; @@ -2597,7 +2597,7 @@ static int vgetorpeek(bool advance) // Correct when the cursor is on the right halve // of a double-wide character. ptr = get_cursor_line_ptr(); - col -= utf_head_off(ptr, ptr + col); + col -= utf_head_off((char *)ptr, (char *)ptr + col); if (utf_ptr2cells((char *)ptr + col) > 1) { curwin->w_wcol--; } |