:highlight : avoid redraw on error

do_highlight() should not redraw if a validation error occurred.
closes #7489
This commit is contained in:
nate 2017-11-09 13:33:37 -08:00 committed by Justin M. Keyes
parent 303e1df13f
commit b1a4db0b69

View File

@ -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();