aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authornate <nateozemon@gmail.com>2017-11-09 13:33:37 -0800
committerJustin M. Keyes <justinkz@gmail.com>2017-11-25 23:22:08 +0100
commitb1a4db0b69e4744f9a4b4e4844021bb9026f03a6 (patch)
tree86435a513bc7da88eab38828c266771b9305ca0e /src/nvim/syntax.c
parent303e1df13f4fbf7173f3805467cacd59c62d40c2 (diff)
downloadrneovim-b1a4db0b69e4744f9a4b4e4844021bb9026f03a6.tar.gz
rneovim-b1a4db0b69e4744f9a4b4e4844021bb9026f03a6.tar.bz2
rneovim-b1a4db0b69e4744f9a4b4e4844021bb9026f03a6.zip
:highlight : avoid redraw on error
do_highlight() should not redraw if a validation error occurred. closes #7489
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index d28e996581..bc7362af72 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -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();