From c7f1e4002184903f4e12e429dd5c6ab731932f86 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 3 Aug 2019 13:29:46 +0200 Subject: patch 8.1.1795: no syntax HL after splitting windows with :bufdo Problem: No syntax HL after splitting windows with :bufdo. (Yasuhiro Matsumoto) Solution: Trigger Syntax autocommands in buffers that are active. (closes #4761) --- src/option.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/option.c') diff --git a/src/option.c b/src/option.c index a804dd870..bf253a461 100644 --- a/src/option.c +++ b/src/option.c @@ -7931,6 +7931,7 @@ did_set_string_option( // recursively, to avoid endless recurrence. apply_autocmds(EVENT_SYNTAX, curbuf->b_p_syn, curbuf->b_fname, value_changed || syn_recursive == 1, curbuf); + curbuf->b_flags |= BF_SYN_SET; --syn_recursive; } #endif -- cgit v1.2.1