Mercurial > vim
comparison src/fileio.c @ 3390:de60f6fa3d8d v7.3.461
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 29 Feb 2012 18:22:08 +0100 |
parents | 198ec1fff71a |
children | fe7bf24804e1 |
comparison
equal
deleted
inserted
replaced
3389:c10cb9f3c366 | 3390:de60f6fa3d8d |
---|---|
9114 has_cursormovedI() | 9114 has_cursormovedI() |
9115 { | 9115 { |
9116 return (first_autopat[(int)EVENT_CURSORMOVEDI] != NULL); | 9116 return (first_autopat[(int)EVENT_CURSORMOVEDI] != NULL); |
9117 } | 9117 } |
9118 | 9118 |
9119 /* | |
9120 * Return TRUE when there is an InsertCharPre autocommand defined. | |
9121 */ | |
9122 int | |
9123 has_insertcharpre() | |
9124 { | |
9125 return (first_autopat[(int)EVENT_INSERTCHARPRE] != NULL); | |
9126 } | |
9127 | |
9119 static int | 9128 static int |
9120 apply_autocmds_group(event, fname, fname_io, force, group, buf, eap) | 9129 apply_autocmds_group(event, fname, fname_io, force, group, buf, eap) |
9121 event_T event; | 9130 event_T event; |
9122 char_u *fname; /* NULL or empty means use actual file name */ | 9131 char_u *fname; /* NULL or empty means use actual file name */ |
9123 char_u *fname_io; /* fname to use for <afile> on cmdline, NULL means | 9132 char_u *fname_io; /* fname to use for <afile> on cmdline, NULL means |