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