Mercurial > vim
comparison src/vim.h @ 17596:892b4ea3bad6 v8.1.1795
patch 8.1.1795: no syntax HL after splitting windows with :bufdo
commit https://github.com/vim/vim/commit/c7f1e4002184903f4e12e429dd5c6ab731932f86
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 3 13:29:46 2019 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 03 Aug 2019 13:30:07 +0200 |
parents | 1348696d07cd |
children | 506dd2efcbb2 |
comparison
equal
deleted
inserted
replaced
17595:50cc81726702 | 17596:892b4ea3bad6 |
---|---|
696 #endif | 696 #endif |
697 #define FAIL 0 | 697 #define FAIL 0 |
698 #define NOTDONE 2 /* not OK or FAIL but skipped */ | 698 #define NOTDONE 2 /* not OK or FAIL but skipped */ |
699 | 699 |
700 /* flags for b_flags */ | 700 /* flags for b_flags */ |
701 #define BF_RECOVERED 0x01 /* buffer has been recovered */ | 701 #define BF_RECOVERED 0x01 // buffer has been recovered |
702 #define BF_CHECK_RO 0x02 /* need to check readonly when loading file | 702 #define BF_CHECK_RO 0x02 // need to check readonly when loading file |
703 into buffer (set by ":e", may be reset by | 703 // into buffer (set by ":e", may be reset by |
704 ":buf" */ | 704 // ":buf" |
705 #define BF_NEVERLOADED 0x04 /* file has never been loaded into buffer, | 705 #define BF_NEVERLOADED 0x04 // file has never been loaded into buffer, |
706 many variables still need to be set */ | 706 // many variables still need to be set |
707 #define BF_NOTEDITED 0x08 /* Set when file name is changed after | 707 #define BF_NOTEDITED 0x08 // Set when file name is changed after |
708 starting to edit, reset when file is | 708 // starting to edit, reset when file is |
709 written out. */ | 709 // written out. |
710 #define BF_NEW 0x10 /* file didn't exist when editing started */ | 710 #define BF_NEW 0x10 // file didn't exist when editing started |
711 #define BF_NEW_W 0x20 /* Warned for BF_NEW and file created */ | 711 #define BF_NEW_W 0x20 // Warned for BF_NEW and file created |
712 #define BF_READERR 0x40 /* got errors while reading the file */ | 712 #define BF_READERR 0x40 // got errors while reading the file |
713 #define BF_DUMMY 0x80 /* dummy buffer, only used internally */ | 713 #define BF_DUMMY 0x80 // dummy buffer, only used internally |
714 #define BF_PRESERVED 0x100 /* ":preserve" was used */ | 714 #define BF_PRESERVED 0x100 // ":preserve" was used |
715 #define BF_SYN_SET 0x200 // 'syntax' option was set | |
715 | 716 |
716 /* Mask to check for flags that prevent normal writing */ | 717 /* Mask to check for flags that prevent normal writing */ |
717 #define BF_WRITE_MASK (BF_NOTEDITED + BF_NEW + BF_READERR) | 718 #define BF_WRITE_MASK (BF_NOTEDITED + BF_NEW + BF_READERR) |
718 | 719 |
719 /* | 720 /* |