mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Remove char_u: Review
Helped-by: Scott Prager <splinterofchaos@gmail.com>
This commit is contained in:
parent
62bcd98ae3
commit
af3381b319
@ -702,8 +702,7 @@ static void report_pending(int action, int pending, void *value)
|
||||
if (pending & CSTP_THROW) {
|
||||
vim_snprintf((char *)IObuff, IOSIZE,
|
||||
mesg, _("Exception"));
|
||||
mesg = (char *)vim_strnsave(IObuff, STRLEN(IObuff) + 4);
|
||||
strcat(mesg, ": %s");
|
||||
mesg = (char *)concat_str(IObuff, (char_u *)": %s");
|
||||
s = (char *)((except_T *)value)->value;
|
||||
} else if ((pending & CSTP_ERROR) && (pending & CSTP_INTERRUPT))
|
||||
s = _("Error and interrupt");
|
||||
|
@ -1168,12 +1168,13 @@ static void command_line_scan(mparm_T *parmp)
|
||||
a = SESSION_FILE;
|
||||
++argc;
|
||||
--argv;
|
||||
} else
|
||||
} else {
|
||||
a = argv[0];
|
||||
p = xmalloc(STRLEN(a) + 4);
|
||||
sprintf((char *)p, "so %s", a);
|
||||
}
|
||||
char *s = xmalloc(STRLEN(a) + 4);
|
||||
sprintf(s, "so %s", a);
|
||||
parmp->cmds_tofree[parmp->n_commands] = TRUE;
|
||||
parmp->commands[parmp->n_commands++] = (char *)p;
|
||||
parmp->commands[parmp->n_commands++] = s;
|
||||
} else {
|
||||
parmp->commands[parmp->n_commands++] = argv[0];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user