aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-26 23:07:56 +0200
committerGitHub <noreply@github.com>2022-08-26 23:07:56 +0200
commitb0e052a8b30ce84221c3f992e111713451633b36 (patch)
tree27caaef2e0b8351eb5637d1a969229663ec2c4a8 /src/nvim/edit.c
parent6a13b8fa5460da5aa22a1c366e5252c26ed5fe1e (diff)
parent395277036014189c03b8969fc0a5cd2bdc5c8631 (diff)
downloadrneovim-b0e052a8b30ce84221c3f992e111713451633b36.tar.gz
rneovim-b0e052a8b30ce84221c3f992e111713451633b36.tar.bz2
rneovim-b0e052a8b30ce84221c3f992e111713451633b36.zip
Merge pull request #19957 from dundargoc/refactor/char_u/1
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index d9aec2fbad..55f4d77feb 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -4290,7 +4290,7 @@ static void ins_left(void)
revins_legal++;
}
revins_chars++;
- } else if (vim_strchr((char *)p_ww, '[') != NULL && curwin->w_cursor.lnum > 1) {
+ } else if (vim_strchr(p_ww, '[') != NULL && curwin->w_cursor.lnum > 1) {
// if 'whichwrap' set for cursor in insert mode may go to previous line.
// always break undo when moving upwards/downwards, else undo may break
start_arrow(&tpos);
@@ -4383,7 +4383,7 @@ static void ins_right(void)
if (revins_chars) {
revins_chars--;
}
- } else if (vim_strchr((char *)p_ww, ']') != NULL
+ } else if (vim_strchr(p_ww, ']') != NULL
&& curwin->w_cursor.lnum < curbuf->b_ml.ml_line_count) {
// if 'whichwrap' set for cursor in insert mode, may move the
// cursor to the next line