aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-10-04 15:40:43 +0200
committerGitHub <noreply@github.com>2021-10-04 06:40:43 -0700
commit44f7b46199aebedb0ff7f8ce782b375a0e156b27 (patch)
treeffc0b6403ce358bda871d07b10b690da8e597966 /src/nvim/getchar.c
parentb4c54ffa2216f46f9f0c456c7c53d3f6a66dad15 (diff)
downloadrneovim-44f7b46199aebedb0ff7f8ce782b375a0e156b27.tar.gz
rneovim-44f7b46199aebedb0ff7f8ce782b375a0e156b27.tar.bz2
rneovim-44f7b46199aebedb0ff7f8ce782b375a0e156b27.zip
refactor: remove redundant char casts #15888
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 15acd73aa5..f5f8a307d1 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -523,7 +523,7 @@ void restoreRedobuff(save_redo_T *save_redo)
void AppendToRedobuff(const char *s)
{
if (!block_redo) {
- add_buff(&redobuff, (const char *)s, -1L);
+ add_buff(&redobuff, s, -1L);
}
}
@@ -2861,7 +2861,7 @@ int buf_do_map(int maptype, MapArguments *args, int mode, bool is_abbrev, buf_T
}
char_u *lhs = (char_u *)&args->lhs;
- char_u *rhs = (char_u *)args->rhs;
+ char_u *rhs = args->rhs;
char_u *orig_rhs = args->orig_rhs;
// check arguments and translate function keys