fix(highlight): remove unnecessary assignment to char_attr for 'spell' (#23713)

This commit is contained in:
luukvbaal
2023-05-22 11:07:55 +02:00
committed by GitHub
parent b7708eac24
commit b11a8c1b5d
2 changed files with 15 additions and 3 deletions

View File

@@ -2046,9 +2046,6 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool nochange,
v = (ptr - line);
if (has_spell && v >= word_end && v > cur_checked_col) {
spell_attr = 0;
if (!attr_pri) {
wlv.char_attr = hl_combine_attr(wlv.char_attr, syntax_attr);
}
if (c != 0 && ((!has_syntax && !no_plain_buffer) || can_spell)) {
char *prev_ptr;
char *p;