summaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-26 23:08:54 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-26 23:08:54 +0200
commitd2842ea60bd608b7f9ec93c77d3f36a8e3bf5fe9 (patch)
treed10208c36706ae29c65fba43fbf02aeced49eccd /src/channel.c
parentd2c1fb476d5816db129eb428ffef6a81027eb13a (diff)
patch 8.1.2080: the terminal API is limited and can't be disabledv8.1.2080
Problem: The terminal API is limited and can't be disabled. Solution: Add term_setapi() to set the function prefix. (Ozaki Kiichi, closes #2907)
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c
index 34ee02a662..e42c9575f9 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -5144,6 +5144,14 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported, int supported2)
memcpy(opt->jo_ansi_colors, rgb, sizeof(rgb));
}
# endif
+ else if (STRCMP(hi->hi_key, "term_api") == 0)
+ {
+ if (!(supported2 & JO2_TERM_API))
+ break;
+ opt->jo_set2 |= JO2_TERM_API;
+ opt->jo_term_api = tv_get_string_buf_chk(item,
+ opt->jo_term_api_buf);
+ }
#endif
else if (STRCMP(hi->hi_key, "env") == 0)
{