diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-26 23:08:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-26 23:08:54 +0200 |
commit | d2842ea60bd608b7f9ec93c77d3f36a8e3bf5fe9 (patch) | |
tree | d10208c36706ae29c65fba43fbf02aeced49eccd /src/channel.c | |
parent | d2c1fb476d5816db129eb428ffef6a81027eb13a (diff) | |
download | vim-git-d2842ea60bd608b7f9ec93c77d3f36a8e3bf5fe9.tar.gz |
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.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c index 34ee02a66..e42c9575f 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) { |