aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-09 10:29:51 +0200
committerGitHub <noreply@github.com>2022-05-09 10:29:51 +0200
commitdfeb5b47bcde7984b2b1820f0268d0d5d736f98d (patch)
tree87e129c92affece6421d4585b5d5c20996891ec5 /src/nvim/normal.c
parentdbdd58e548fcf55848359b696275fd848756db7b (diff)
parente31b32a293f6ba8708499a176234f8be1df6a145 (diff)
downloadrneovim-dfeb5b47bcde7984b2b1820f0268d0d5d736f98d.tar.gz
rneovim-dfeb5b47bcde7984b2b1820f0268d0d5d736f98d.tar.bz2
rneovim-dfeb5b47bcde7984b2b1820f0268d0d5d736f98d.zip
Merge pull request #18466 from dundargoc/refactor/remove-char_u
refactor: replace char_u variables and functions with char
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r--src/nvim/normal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 9c8c27c9bb..fd974d9c05 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -1775,7 +1775,7 @@ bool do_mouse(oparg_T *oap, int c, int dir, long count, bool fixindent)
funcexe.firstline = curwin->w_cursor.lnum;
funcexe.lastline = curwin->w_cursor.lnum;
funcexe.evaluate = true;
- (void)call_func((char_u *)tab_page_click_defs[mouse_col].func, -1,
+ (void)call_func(tab_page_click_defs[mouse_col].func, -1,
&rettv, ARRAY_SIZE(argv), argv, &funcexe);
tv_clear(&rettv);
break;
@@ -3035,7 +3035,7 @@ bool find_decl(char_u *ptr, size_t len, bool locally, bool thisblock, int flags_
} else {
par_pos = curwin->w_cursor;
while (curwin->w_cursor.lnum > 1
- && *skipwhite(get_cursor_line_ptr()) != NUL) {
+ && *skipwhite((char *)get_cursor_line_ptr()) != NUL) {
curwin->w_cursor.lnum--;
}
}
@@ -4108,7 +4108,7 @@ static void nv_ident(cmdarg_T *cap)
assert(*kp != NUL); // option.c:do_set() should default to ":help" if empty.
bool kp_ex = (*kp == ':'); // 'keywordprg' is an ex command
bool kp_help = (STRCMP(kp, ":he") == 0 || STRCMP(kp, ":help") == 0);
- if (kp_help && *skipwhite(ptr) == NUL) {
+ if (kp_help && *skipwhite((char *)ptr) == NUL) {
emsg(_(e_noident)); // found white space only
return;
}