diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-26 20:34:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-26 20:34:00 +0100 |
commit | 83d4790a04780328c9c7ad22d18f404a27c11601 (patch) | |
tree | a8ba50932310b660b95073237ceb1c4fb104e6cf /src/structs.h | |
parent | 3ed9efc2b15b624268bcce4e4d312fb35840a12b (diff) | |
download | vim-git-83d4790a04780328c9c7ad22d18f404a27c11601.tar.gz |
patch 8.2.0455: cannot set the highlight group for a specific terminalv8.2.0455
Problem: Cannot set the highlight group for a specific terminal.
Solution: Add the "highlight" option to term_start(). (closes #5818)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index ff32cb2c8..9f3628e3c 100644 --- a/src/structs.h +++ b/src/structs.h @@ -2071,6 +2071,7 @@ struct channel_S { #define JO2_TTY_TYPE 0x10000 // "tty_type" #define JO2_BUFNR 0x20000 // "bufnr" #define JO2_TERM_API 0x40000 // "term_api" +#define JO2_TERM_HIGHLIGHT 0x80000 // "highlight" #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE) #define JO_CB_ALL \ @@ -2143,6 +2144,8 @@ typedef struct # if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) long_u jo_ansi_colors[16]; # endif + char_u jo_term_highlight_buf[NUMBUFLEN]; + char_u *jo_term_highlight; int jo_tty_type; // first character of "tty_type" char_u jo_term_api_buf[NUMBUFLEN]; char_u *jo_term_api; |