mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
eval.c: Fix cut off of terminal exit message
The message array in on_process_exit() is too short for a status > 99.
This commit is contained in:
@@ -22320,7 +22320,7 @@ static void on_process_exit(Process *proc, int status, void *d)
|
|||||||
TerminalJobData *data = d;
|
TerminalJobData *data = d;
|
||||||
if (data->term && !data->exited) {
|
if (data->term && !data->exited) {
|
||||||
data->exited = true;
|
data->exited = true;
|
||||||
char msg[22];
|
char msg[sizeof("\r\n[Process exited ]") + NUMBUFLEN];
|
||||||
snprintf(msg, sizeof msg, "\r\n[Process exited %d]", proc->status);
|
snprintf(msg, sizeof msg, "\r\n[Process exited %d]", proc->status);
|
||||||
terminal_close(data->term, msg);
|
terminal_close(data->term, msg);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user