aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mark.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-31 20:50:43 +0200
committerGitHub <noreply@github.com>2022-08-31 20:50:43 +0200
commitf078a3453ae479e4d6f88f874e8d282d63c798a3 (patch)
tree60997bc19af85f1292cb0ca7e66e797737006dee /src/nvim/mark.c
parent933c80e8f9d7ff4ab634c14d370440702c7c8ed7 (diff)
parentfb1edb2f5728d74ae811c6ab32395598cea5609b (diff)
downloadrneovim-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/mark.c')
-rw-r--r--src/nvim/mark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/mark.c b/src/nvim/mark.c
index 9df4d416ff..816599271d 100644
--- a/src/nvim/mark.c
+++ b/src/nvim/mark.c
@@ -819,7 +819,7 @@ static char_u *mark_line(pos_T *mp, int lead_len)
}
assert(Columns >= 0);
// Allow for up to 5 bytes per character.
- s = vim_strnsave((char_u *)skipwhite((char *)ml_get(mp->lnum)), (size_t)Columns * 5);
+ s = vim_strnsave((char_u *)skipwhite(ml_get(mp->lnum)), (size_t)Columns * 5);
// Truncate the line to fit it in the window
len = 0;
@@ -1758,7 +1758,7 @@ void mark_mb_adjustpos(buf_T *buf, pos_T *lp)
if (*p == NUL || (int)STRLEN(p) < lp->col) {
lp->col = 0;
} else {
- lp->col -= utf_head_off(p, p + lp->col);
+ lp->col -= utf_head_off((char *)p, (char *)p + lp->col);
}
// Reset "coladd" when the cursor would be on the right half of a
// double-wide character.