diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-03 13:29:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-03 13:29:46 +0200 |
commit | c7f1e4002184903f4e12e429dd5c6ab731932f86 (patch) | |
tree | a101834cbba39badc74d3882e2f011218848c3bf /src/option.c | |
parent | f2d8b7a0a69fd71018341755da5ce55d067b5923 (diff) | |
download | vim-git-c7f1e4002184903f4e12e429dd5c6ab731932f86.tar.gz |
patch 8.1.1795: no syntax HL after splitting windows with :bufdov8.1.1795
Problem: No syntax HL after splitting windows with :bufdo. (Yasuhiro
Matsumoto)
Solution: Trigger Syntax autocommands in buffers that are active.
(closes #4761)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |