mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 03:28:33 +00:00
screen.c: Fix listchars hl for space/nbsp in visual mode.
This commit is contained in:

committed by
Justin M. Keyes

parent
f598bb7b3c
commit
4eb4a5cdb2
@@ -3385,11 +3385,9 @@ win_line (
|
||||
&& lcs_nbsp)
|
||||
|| (c == ' ' && lcs_space && ptr - line <= trailcol))) {
|
||||
c = (c == ' ') ? lcs_space : lcs_nbsp;
|
||||
if (area_attr == 0 && search_attr == 0) {
|
||||
n_attr = 1;
|
||||
extra_attr = hl_attr(HLF_8);
|
||||
saved_attr2 = char_attr; // save current attr
|
||||
}
|
||||
mb_c = c;
|
||||
if (enc_utf8 && (*mb_char2len)(c) > 1) {
|
||||
mb_utf8 = true;
|
||||
|
Reference in New Issue
Block a user