aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-01-09 15:37:34 +0100
committerGitHub <noreply@github.com>2023-01-09 22:37:34 +0800
commit50f03773f4b9f4638489ccfd0503dc9e39e5de78 (patch)
tree2471c7596d233b66cacc36986bea0a31e9ba96ea /src/nvim/main.c
parent9cd7edc6ad884f59b0be9dda3523ff88f4dca705 (diff)
downloadrneovim-50f03773f4b9f4638489ccfd0503dc9e39e5de78.tar.gz
rneovim-50f03773f4b9f4638489ccfd0503dc9e39e5de78.tar.bz2
rneovim-50f03773f4b9f4638489ccfd0503dc9e39e5de78.zip
refactor: replace char_u with char 18 (#21237)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 953385836b..048fdd4052 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -1336,7 +1336,7 @@ static void command_line_scan(mparm_T *parmp)
case 's': // "-s {scriptin}" read from script file
if (parmp->scriptin != NULL) {
scripterror:
- vim_snprintf((char *)IObuff, IOSIZE,
+ vim_snprintf(IObuff, IOSIZE,
_("Attempt to open script file again: \"%s %s\"\n"),
argv[-1], argv[0]);
os_errmsg(IObuff);
@@ -1514,8 +1514,8 @@ static void handle_quickfix(mparm_T *paramp)
if (paramp->use_ef != NULL) {
set_string_option_direct("ef", -1, paramp->use_ef, OPT_FREE, SID_CARG);
}
- vim_snprintf((char *)IObuff, IOSIZE, "cfile %s", p_ef);
- if (qf_init(NULL, (char *)p_ef, p_efm, true, (char *)IObuff, p_menc) < 0) {
+ vim_snprintf(IObuff, IOSIZE, "cfile %s", p_ef);
+ if (qf_init(NULL, (char *)p_ef, p_efm, true, IObuff, p_menc) < 0) {
msg_putchar('\n');
os_exit(3);
}
@@ -1530,8 +1530,8 @@ static void handle_tag(char_u *tagname)
if (tagname != NULL) {
swap_exists_did_quit = false;
- vim_snprintf((char *)IObuff, IOSIZE, "ta %s", tagname);
- do_cmdline_cmd((char *)IObuff);
+ vim_snprintf(IObuff, IOSIZE, "ta %s", tagname);
+ do_cmdline_cmd(IObuff);
TIME_MSG("jumping to tag");
// If the user doesn't want to edit the file then we quit here.