diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-12 20:25:52 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-12 20:25:52 +0200 |
commit | 493359eb3b10377d5c3524e91d911809b8ac7a76 (patch) | |
tree | 9fbef20dacb5f09982441ec052fa872943bfaa20 /src/channel.c | |
parent | d7a137fb0d980545dd567bee9c24cf7b9c3a2eae (diff) | |
download | vim-git-493359eb3b10377d5c3524e91d911809b8ac7a76.tar.gz |
patch 8.1.0050: $VIM_TERMINAL is also set when not in a terminal windowv8.1.0050
Problem: $VIM_TERMINAL is also set when not in a terminal window.
Solution: Pass a flag to indicate whether the job runs in a terminal.
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/channel.c b/src/channel.c index 40a3e955d..d654dc06d 100644 --- a/src/channel.c +++ b/src/channel.c @@ -5525,7 +5525,11 @@ job_check_ended(void) * Returns NULL when out of memory. */ job_T * -job_start(typval_T *argvars, char **argv_arg, jobopt_T *opt_arg) +job_start( + typval_T *argvars, + char **argv_arg, + jobopt_T *opt_arg, + int is_terminal UNUSED) { job_T *job; char_u *cmd = NULL; @@ -5679,7 +5683,7 @@ job_start(typval_T *argvars, char **argv_arg, jobopt_T *opt_arg) ch_log(NULL, "Starting job: %s", (char *)ga.ga_data); ga_clear(&ga); } - mch_job_start(argv, job, &opt); + mch_job_start(argv, job, &opt, is_terminal); #else ch_log(NULL, "Starting job: %s", (char *)cmd); mch_job_start((char *)cmd, job, &opt); |