aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-16 14:24:29 +0200
committerGitHub <noreply@github.com>2022-05-16 14:24:29 +0200
commitb9b5577d6d8e07d1e39020c8fc05f817f2e81c66 (patch)
tree0d4b5f8b4db1ad7b4cd6d93c89d149e9e2d84570 /src/nvim/getchar.c
parent14d653b421d3ee4e0d641e45e67dafe43809e502 (diff)
parentf0148de7907ec297647816d51c79745be729439e (diff)
downloadrneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.tar.gz
rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.tar.bz2
rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.zip
Merge pull request #18578 from dundargoc/refactor/remove-char_u
refactor: remove char_u
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index e64fda39e9..2cc068b30d 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -802,7 +802,7 @@ int start_redo_ins(void)
// skip the count and the command character
while ((c = read_redo(false, false)) != NUL) {
- if (vim_strchr((char_u *)"AaIiRrOo", c) != NULL) {
+ if (vim_strchr("AaIiRrOo", c) != NULL) {
if (c == 'O' || c == 'o') {
add_buff(&readbuf2, NL_STR, -1L);
}
@@ -4736,9 +4736,9 @@ char_u *check_map(char_u *keys, int mode, int exact, int ign_mod, int abbr, mapb
void add_map(char_u *map, int mode, bool nore)
{
char_u *s;
- char_u *cpo_save = p_cpo;
+ char *cpo_save = p_cpo;
- p_cpo = (char_u *)""; // Allow <> notation
+ p_cpo = ""; // Allow <> notation
// Need to put string in allocated memory, because do_map() will modify it.
s = vim_strsave(map);
(void)do_map(nore ? 2 : 0, s, mode, false);