diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-09 11:49:32 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-16 13:27:06 +0200 |
commit | f0148de7907ec297647816d51c79745be729439e (patch) | |
tree | 1aaaa4bbb1cff930178e05dd8b0f72482db166e6 /src/nvim/getchar.c | |
parent | 7adecbcd29e17b71bf43e50a444724da184c04a7 (diff) | |
download | rneovim-f0148de7907ec297647816d51c79745be729439e.tar.gz rneovim-f0148de7907ec297647816d51c79745be729439e.tar.bz2 rneovim-f0148de7907ec297647816d51c79745be729439e.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 6 |
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); |