diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-02 09:56:22 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-05-02 09:56:22 +0200 |
commit | fd0fd752c872428cc4fb9c95721eab1b505fc111 (patch) | |
tree | 82b1f3d0635af4b2ce170b0f2768691df2855062 /src | |
parent | 49c51f839b537ac8ff60671030a8d7b2399ad4a7 (diff) | |
download | rneovim-fd0fd752c872428cc4fb9c95721eab1b505fc111.tar.gz rneovim-fd0fd752c872428cc4fb9c95721eab1b505fc111.tar.bz2 rneovim-fd0fd752c872428cc4fb9c95721eab1b505fc111.zip |
terminal: swap priority of terminal, editor highlights
closes #9964
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/screen.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index cd472ea1e4..d61be4af1c 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -3275,16 +3275,18 @@ win_line ( line = ml_get_buf(wp->w_buffer, lnum, FALSE); ptr = line + v; - if (!attr_pri) + if (!attr_pri) { char_attr = syntax_attr; - else + } else { char_attr = hl_combine_attr(syntax_attr, char_attr); - /* no concealing past the end of the line, it interferes - * with line highlighting */ - if (c == NUL) + } + // no concealing past the end of the line, it interferes + // with line highlighting. + if (c == NUL) { syntax_flags = 0; - else + } else { syntax_flags = get_syntax_info(&syntax_seqnr); + } } else if (!attr_pri) { char_attr = 0; } @@ -3376,7 +3378,7 @@ win_line ( } if (wp->w_buffer->terminal) { - char_attr = hl_combine_attr(char_attr, term_attrs[vcol]); + char_attr = hl_combine_attr(term_attrs[vcol], char_attr); } // Found last space before word: check for line break. |