aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/shell.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-02-23 22:25:36 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-23 22:25:36 -0300
commit56f371cb820107cf31c66be07b189818dbd527ee (patch)
tree9de6cc3996a01d133cd883d61a7c24a564a772ba /src/nvim/os/shell.c
parent0df6b9168e9dc09d3e0ae6050d67b7c31c603782 (diff)
parentd7e560e5b309578f142c23467d566877cb54ee9a (diff)
downloadrneovim-56f371cb820107cf31c66be07b189818dbd527ee.tar.gz
rneovim-56f371cb820107cf31c66be07b189818dbd527ee.tar.bz2
rneovim-56f371cb820107cf31c66be07b189818dbd527ee.zip
Merge PR #2037 'Job control fixes and pseudo terminal support'
Diffstat (limited to 'src/nvim/os/shell.c')
-rw-r--r--src/nvim/os/shell.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c
index 32c7ea564d..8cf7e7161d 100644
--- a/src/nvim/os/shell.c
+++ b/src/nvim/os/shell.c
@@ -201,14 +201,14 @@ static int shell(const char *cmd,
char **argv = shell_build_argv(cmd, extra_args);
int status;
- Job *job = job_start(argv,
- &buf,
- input != NULL,
- data_cb,
- data_cb,
- NULL,
- 0,
- &status);
+ JobOptions opts = JOB_OPTIONS_INIT;
+ opts.argv = argv;
+ opts.data = &buf;
+ opts.writable = input != NULL;
+ opts.stdout_cb = data_cb;
+ opts.stderr_cb = data_cb;
+ opts.exit_cb = NULL;
+ Job *job = job_start(opts, &status);
if (status <= 0) {
// Failed, probably due to `sh` not being executable