aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/channel.c')
-rw-r--r--src/nvim/channel.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/channel.c b/src/nvim/channel.c
index 313eefd562..0eae87c1f8 100644
--- a/src/nvim/channel.c
+++ b/src/nvim/channel.c
@@ -1,6 +1,7 @@
// This is an open source non-commercial project. Dear PVS-Studio, please check
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
+#include "nvim/api/private/converter.h"
#include "nvim/api/private/helpers.h"
#include "nvim/api/ui.h"
#include "nvim/channel.h"
@@ -318,7 +319,7 @@ Channel *channel_job_start(char **argv, CallbackReader on_stdout, CallbackReader
if (pty) {
if (detach) {
- EMSG2(_(e_invarg2), "terminal/pty job cannot be detached");
+ semsg(_(e_invarg2), "terminal/pty job cannot be detached");
shell_free_argv(argv);
if (env) {
tv_dict_free(env);
@@ -368,7 +369,7 @@ Channel *channel_job_start(char **argv, CallbackReader on_stdout, CallbackReader
int status = process_spawn(proc, has_in, has_out, has_err);
if (status) {
- EMSG3(_(e_jobspawn), os_strerror(status), cmd);
+ semsg(_(e_jobspawn), os_strerror(status), cmd);
xfree(cmd);
if (proc->env) {
tv_dict_free(proc->env);
@@ -671,7 +672,7 @@ void channel_reader_callbacks(Channel *chan, CallbackReader *reader)
tv_dict_add_list(reader->self, reader->type, strlen(reader->type),
data);
} else {
- EMSG3(_(e_streamkey), reader->type, chan->id);
+ semsg(_(e_streamkey), reader->type, chan->id);
}
} else {
channel_callback_call(chan, reader);