Skip to content

Commit

Permalink
Merge pull request #8708 from blueyed/fix-standout
Browse files Browse the repository at this point in the history
Fix standout mode
  • Loading branch information
jamessan committed Jul 10, 2018
2 parents 13bdc21 + 8135633 commit d241f27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nvim/tui/tui.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d241f27

Please sign in to comment.