aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/textobject.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/textobject.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/textobject.c')
-rw-r--r--src/nvim/textobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/textobject.c b/src/nvim/textobject.c
index 02174edeb1..a8f4cc7aeb 100644
--- a/src/nvim/textobject.c
+++ b/src/nvim/textobject.c
@@ -213,13 +213,13 @@ bool findpar(bool *pincl, int dir, long count, int what, bool both)
}
curwin->w_cursor.lnum = curr;
if (curr == curbuf->b_ml.ml_line_count && what != '}') {
- char_u *line = ml_get(curr);
+ char_u *line = (char_u *)ml_get(curr);
// Put the cursor on the last character in the last line and make the
// motion inclusive.
if ((curwin->w_cursor.col = (colnr_T)STRLEN(line)) != 0) {
curwin->w_cursor.col--;
- curwin->w_cursor.col -= utf_head_off(line, line + curwin->w_cursor.col);
+ curwin->w_cursor.col -= utf_head_off((char *)line, (char *)line + curwin->w_cursor.col);
*pincl = true;
}
} else {
@@ -260,7 +260,7 @@ bool startPS(linenr_T lnum, int para, bool both)
{
char_u *s;
- s = ml_get(lnum);
+ s = (char_u *)ml_get(lnum);
if (*s == para || *s == '\f' || (both && *s == '}')) {
return true;
}
@@ -1467,7 +1467,7 @@ static int find_prev_quote(char_u *line, int col_start, int quotechar, char_u *e
while (col_start > 0) {
col_start--;
- col_start -= utf_head_off(line, line + col_start);
+ col_start -= utf_head_off((char *)line, (char *)line + col_start);
n = 0;
if (escape != NULL) {
while (col_start - n > 0 && vim_strchr((char *)escape,