summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-12 20:25:52 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-12 20:25:52 +0200
commit493359eb3b10377d5c3524e91d911809b8ac7a76 (patch)
tree9fbef20dacb5f09982441ec052fa872943bfaa20 /src/terminal.c
parentd7a137fb0d980545dd567bee9c24cf7b9c3a2eae (diff)
downloadvim-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/terminal.c')
-rw-r--r--src/terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 275a5a7ba..9b7bc038d 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -5769,7 +5769,7 @@ term_and_job_init(
#endif
/* This may change a string in "argvar". */
- term->tl_job = job_start(argvar, argv, opt);
+ term->tl_job = job_start(argvar, argv, opt, TRUE);
if (term->tl_job != NULL)
++term->tl_job->jv_refcount;