aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memline.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-07 16:40:00 +0200
committerGitHub <noreply@github.com>2022-05-07 16:40:00 +0200
commit03471e292d48283379a397dadf902572de91b359 (patch)
treee0736597ec1b49250a128a58ae0f7e7e217c3f2f /src/nvim/memline.c
parenteccb9896894f0e092b8d3c2519eb81b2a3fb3cca (diff)
parent2a378e6e82cececb12339f2df51ffe107039d867 (diff)
downloadrneovim-03471e292d48283379a397dadf902572de91b359.tar.gz
rneovim-03471e292d48283379a397dadf902572de91b359.tar.bz2
rneovim-03471e292d48283379a397dadf902572de91b359.zip
Merge pull request #18425 from dundargoc/refactor/char_u/1
refactor: replace char_u variables and functions with char
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r--src/nvim/memline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index eec0b2fafc..081045ab18 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -1823,7 +1823,7 @@ int gchar_pos(pos_T *pos)
if (pos->col == MAXCOL) {
return NUL;
}
- return utf_ptr2char(ml_get_pos(pos));
+ return utf_ptr2char((char *)ml_get_pos(pos));
}
/// @param will_change true mark the buffer dirty (chars in the line will be changed)
@@ -4206,7 +4206,7 @@ int inc(pos_T *lp)
if (lp->col != MAXCOL) {
const char_u *const p = ml_get_pos(lp);
if (*p != NUL) { // still within line, move to next char (may be NUL)
- const int l = utfc_ptr2len(p);
+ const int l = utfc_ptr2len((char *)p);
lp->col += l;
return ((p[l] != NUL) ? 0 : 2);