From 493359eb3b10377d5c3524e91d911809b8ac7a76 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 12 Jun 2018 20:25:52 +0200 Subject: patch 8.1.0050: $VIM_TERMINAL is also set when not in a terminal window 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. --- src/proto/channel.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/proto/channel.pro') diff --git a/src/proto/channel.pro b/src/proto/channel.pro index e6c95089b..5326276ef 100644 --- a/src/proto/channel.pro +++ b/src/proto/channel.pro @@ -66,7 +66,7 @@ void job_set_options(job_T *job, jobopt_T *opt); void job_stop_on_exit(void); int has_pending_job(void); void job_check_ended(void); -job_T *job_start(typval_T *argvars, char **argv_arg, jobopt_T *opt_arg); +job_T *job_start(typval_T *argvars, char **argv_arg, jobopt_T *opt_arg, int is_terminal); char *job_status(job_T *job); void job_info(job_T *job, dict_T *dict); void job_info_all(list_T *l); -- cgit v1.2.1