aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-11-25 23:22:46 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-11-25 23:22:46 +0100
commitb57d9a4ff08fc1ef8db79d422b441b792493ff4e (patch)
tree7c9f9c76098dc4551c2fe8a4b9487198b42d77b1 /src/nvim/syntax.c
parent303e1df13f4fbf7173f3805467cacd59c62d40c2 (diff)
parentebed8c6a2eb641397bd7a7b34ea46ca5c02ea346 (diff)
downloadrneovim-b57d9a4ff08fc1ef8db79d422b441b792493ff4e.tar.gz
rneovim-b57d9a4ff08fc1ef8db79d422b441b792493ff4e.tar.bz2
rneovim-b57d9a4ff08fc1ef8db79d422b441b792493ff4e.zip
Merge #7631 'highlight: no refresh on validation error'
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();