diff options
author | James McCoy <jamessan@jamessan.com> | 2018-07-10 11:32:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-10 11:32:27 -0400 |
commit | d241f278d3d9e26f17c9b67ec363c7ed498a4e0f (patch) | |
tree | c2354523019446a18e62051d78f1442bc302966d | |
parent | 13bdc21faf936f7af7511b5001628ee547cc215b (diff) | |
parent | 813563365cec3c002e6d8f072c12983f17fe9c2f (diff) | |
download | rneovim-d241f278d3d9e26f17c9b67ec363c7ed498a4e0f.tar.gz rneovim-d241f278d3d9e26f17c9b67ec363c7ed498a4e0f.tar.bz2 rneovim-d241f278d3d9e26f17c9b67ec363c7ed498a4e0f.zip |
Merge pull request #8708 from blueyed/fix-standout
Fix standout mode
-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 3eb20302e9..f41c715696 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) |