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/macros.h | |
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/macros.h')
-rw-r--r-- | src/nvim/macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h index 5601db274b..b84539852f 100644 --- a/src/nvim/macros.h +++ b/src/nvim/macros.h @@ -104,7 +104,7 @@ // MB_PTR_BACK(): backup a pointer to the previous character, taking care of // multi-byte characters if needed. Only use with "p" > "s" ! #define MB_PTR_BACK(s, p) \ - (p -= utf_head_off((char_u *)(s), (char_u *)(p) - 1) + 1) + (p -= utf_head_off((char *)(s), (char *)(p) - 1) + 1) // MB_CHAR2BYTES(): convert character to bytes and advance pointer to bytes #define MB_CHAR2BYTES(c, b) ((b) += utf_char2bytes((c), ((char *)b))) |