mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
jobsend: Don't append extra newline after last item
This allows sending binary data that is not newline terminated
This commit is contained in:
@@ -10656,7 +10656,7 @@ static void f_jobsend(typval_T *argvars, typval_T *rettv)
|
||||
}
|
||||
|
||||
ssize_t input_len;
|
||||
char *input = (char *) save_tv_as_string(&argvars[1], &input_len, true);
|
||||
char *input = (char *) save_tv_as_string(&argvars[1], &input_len, false);
|
||||
if (!input) {
|
||||
// Either the error has been handled by save_tv_as_string(), or there is no
|
||||
// input to send.
|
||||
|
Reference in New Issue
Block a user