diff options
author | Daniel Hahler <git@thequod.de> | 2018-07-08 17:26:17 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2018-07-08 17:26:17 +0200 |
commit | 813563365cec3c002e6d8f072c12983f17fe9c2f (patch) | |
tree | 8476959b2c2b204442d35e0daa6d9fa48dc9a939 | |
parent | 57fafcea23e2609e40ecacf27b2d68add9b1f7e9 (diff) | |
download | rneovim-813563365cec3c002e6d8f072c12983f17fe9c2f.tar.gz rneovim-813563365cec3c002e6d8f072c12983f17fe9c2f.tar.bz2 rneovim-813563365cec3c002e6d8f072c12983f17fe9c2f.zip |
[WIP/RFC] Fix standout mode
It was not working for me in different terminals.
This patch makes it work in the same way like reverse.
Test:
:hi jediUsage cterm=standout | hi jediUsage
-rw-r--r-- | src/nvim/tui/tui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 211b9bc544..f1db9aed0d 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -459,8 +459,8 @@ static void update_attrs(UI *ui, HlAttrs attrs) bool underline = attr & (HL_UNDERLINE), undercurl = attr & (HL_UNDERCURL); if (unibi_get_str(data->ut, unibi_set_attributes)) { - if (bold || reverse || underline || undercurl) { - UNIBI_SET_NUM_VAR(data->params[0], 0); // standout + if (bold || reverse || underline || undercurl || standout) { + UNIBI_SET_NUM_VAR(data->params[0], standout); UNIBI_SET_NUM_VAR(data->params[1], underline || undercurl); UNIBI_SET_NUM_VAR(data->params[2], reverse); UNIBI_SET_NUM_VAR(data->params[3], 0); // blink @@ -520,7 +520,7 @@ static void update_attrs(UI *ui, HlAttrs attrs) } data->default_attr = fg == -1 && bg == -1 - && !bold && !italic && !underline && !undercurl && !reverse; + && !bold && !italic && !underline && !undercurl && !reverse && !standout; } static void final_column_wrap(UI *ui) |