diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-02-29 18:22:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-02-29 18:22:08 +0100 |
commit | f5876f147abc44914e6f0d572aabb9c1f92c1911 (patch) | |
tree | 74a765dd6d14d945a32a6310fb798b8798ef0e08 /src/fileio.c | |
parent | 91856270dfbf7a042e2869bc44c9c7b217852f40 (diff) | |
download | vim-f5876f147abc44914e6f0d572aabb9c1f92c1911.zip |
updated for version 7.3.461
Problem: The InsertCharPre autocommand event is not triggered during
completion and when typing several characters quickly.
Solution: Also trigger InsertCharPre during completion. Do not read ahead
when an InsertCharPre autocommand is defined. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index a06452fdb..5d00b753d 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -9116,6 +9116,15 @@ has_cursormovedI() return (first_autopat[(int)EVENT_CURSORMOVEDI] != NULL); } +/* + * Return TRUE when there is an InsertCharPre autocommand defined. + */ + int +has_insertcharpre() +{ + return (first_autopat[(int)EVENT_INSERTCHARPRE] != NULL); +} + static int apply_autocmds_group(event, fname, fname_io, force, group, buf, eap) event_T event; |