mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
:highlight : avoid redraw on error
do_highlight() should not redraw if a validation error occurred. closes #7489
This commit is contained in:
parent
303e1df13f
commit
b1a4db0b69
@ -6648,7 +6648,7 @@ do_highlight(char_u *line, int forceit, int init) {
|
||||
if (error && idx == highlight_ga.ga_len) {
|
||||
syn_unadd_group();
|
||||
} else {
|
||||
if (is_normal_group) {
|
||||
if (!error && is_normal_group) {
|
||||
// Need to update all groups, because they might be using "bg" and/or
|
||||
// "fg", which have been changed now.
|
||||
highlight_attr_set_all();
|
||||
|
Loading…
Reference in New Issue
Block a user