diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-17 12:34:25 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-17 13:48:52 -0400 |
| commit | 242af4dc991f12474eb281eb64236922b423cdbe (patch) | |
| tree | 54fb8384808b80ed9ec095414fa61b2f3c6cee18 /src/nvim/option.c | |
| parent | e1ec2b0729d54710b6fbdf17e02d030468dbed15 (diff) | |
| download | rneovim-242af4dc991f12474eb281eb64236922b423cdbe.tar.gz rneovim-242af4dc991f12474eb281eb64236922b423cdbe.tar.bz2 rneovim-242af4dc991f12474eb281eb64236922b423cdbe.zip | |
vim-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 vim/vim#4761)
https://github.com/vim/vim/commit/c7f1e4002184903f4e12e429dd5c6ab731932f86
Diffstat (limited to 'src/nvim/option.c')
| -rw-r--r-- | src/nvim/option.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 6ae9378236..f9b76750ba 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -3438,6 +3438,7 @@ ambw_end: // 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--; } else if (varp == &(curbuf->b_p_ft)) { // 'filetype' is set, trigger the FileType autocommand |
