Mercurial > vim
comparison src/channel.c @ 18170:4ac8161e92e0 v8.1.2080
patch 8.1.2080: the terminal API is limited and can't be disabled
Commit: https://github.com/vim/vim/commit/d2842ea60bd608b7f9ec93c77d3f36a8e3bf5fe9
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 26 23:08:54 2019 +0200
patch 8.1.2080: the terminal API is limited and can't be disabled
Problem: The terminal API is limited and can't be disabled.
Solution: Add term_setapi() to set the function prefix. (Ozaki Kiichi,
closes #2907)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 26 Sep 2019 23:15:05 +0200 |
parents | 770987511384 |
children | 0f8a34c996eb |
comparison
equal
deleted
inserted
replaced
18169:6ad8949a205d | 18170:4ac8161e92e0 |
---|---|
5142 | 5142 |
5143 opt->jo_set2 |= JO2_ANSI_COLORS; | 5143 opt->jo_set2 |= JO2_ANSI_COLORS; |
5144 memcpy(opt->jo_ansi_colors, rgb, sizeof(rgb)); | 5144 memcpy(opt->jo_ansi_colors, rgb, sizeof(rgb)); |
5145 } | 5145 } |
5146 # endif | 5146 # endif |
5147 else if (STRCMP(hi->hi_key, "term_api") == 0) | |
5148 { | |
5149 if (!(supported2 & JO2_TERM_API)) | |
5150 break; | |
5151 opt->jo_set2 |= JO2_TERM_API; | |
5152 opt->jo_term_api = tv_get_string_buf_chk(item, | |
5153 opt->jo_term_api_buf); | |
5154 } | |
5147 #endif | 5155 #endif |
5148 else if (STRCMP(hi->hi_key, "env") == 0) | 5156 else if (STRCMP(hi->hi_key, "env") == 0) |
5149 { | 5157 { |
5150 if (!(supported2 & JO2_ENV)) | 5158 if (!(supported2 & JO2_ENV)) |
5151 break; | 5159 break; |