diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-04 13:00:18 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-04 17:49:37 +0200 |
commit | f08477789fe241c3868d3856643c78da0760cd19 (patch) | |
tree | a44e1d1715323e43e1a6440fe95d2268778e69b8 /src/nvim/ex_docmd.c | |
parent | 4f17e7e1c38e53eb214fd85cde1cbbe332e86498 (diff) | |
download | rneovim-f08477789fe241c3868d3856643c78da0760cd19.tar.gz rneovim-f08477789fe241c3868d3856643c78da0760cd19.tar.bz2 rneovim-f08477789fe241c3868d3856643c78da0760cd19.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 262e393468..5ed058cd89 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -3665,11 +3665,11 @@ const char *set_one_cmd_context(expand_T *xp, const char *buff) } break; case CMD_autocmd: - return (const char *)set_context_in_autocmd(xp, (char_u *)arg, false); + return (const char *)set_context_in_autocmd(xp, (char *)arg, false); case CMD_doautocmd: case CMD_doautoall: - return (const char *)set_context_in_autocmd(xp, (char_u *)arg, true); + return (const char *)set_context_in_autocmd(xp, (char *)arg, true); case CMD_set: set_context_in_set_cmd(xp, (char_u *)arg, 0); break; @@ -5136,9 +5136,9 @@ static void ex_autocmd(exarg_T *eap) secure = 2; eap->errmsg = e_curdir; } else if (eap->cmdidx == CMD_autocmd) { - do_autocmd((char_u *)eap->arg, eap->forceit); + do_autocmd(eap->arg, eap->forceit); } else { - do_augroup((char_u *)eap->arg, eap->forceit); + do_augroup(eap->arg, eap->forceit); } } @@ -5146,10 +5146,10 @@ static void ex_autocmd(exarg_T *eap) static void ex_doautocmd(exarg_T *eap) { char *arg = eap->arg; - int call_do_modelines = check_nomodeline((char_u **)&arg); + int call_do_modelines = check_nomodeline(&arg); bool did_aucmd; - (void)do_doautocmd((char_u *)arg, false, &did_aucmd); + (void)do_doautocmd(arg, false, &did_aucmd); // Only when there is no <nomodeline>. if (call_do_modelines && did_aucmd) { do_modelines(0); @@ -9669,7 +9669,7 @@ static void ex_filetype(exarg_T *eap) } } if (*arg == 'd') { - (void)do_doautocmd((char_u *)"filetypedetect BufRead", true, NULL); + (void)do_doautocmd("filetypedetect BufRead", true, NULL); do_modelines(0); } } else if (STRCMP(arg, "off") == 0) { |