Mercurial > vim
diff src/fileio.c @ 4232:0fcb050fd79d v7.3.867
updated for version 7.3.867
Problem: Matchparen does not update match when using auto-indenting.
(Marc Aldorasi)
Solution: Add the TextChanged and TextChangedI autocommand events.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 19 Mar 2013 13:33:23 +0100 |
parents | 8819ea6dcb72 |
children | edd0bc1f26bd |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -7713,6 +7713,8 @@ static struct event_name {"TabLeave", EVENT_TABLEAVE}, {"TermChanged", EVENT_TERMCHANGED}, {"TermResponse", EVENT_TERMRESPONSE}, + {"TextChanged", EVENT_TEXTCHANGED}, + {"TextChangedI", EVENT_TEXTCHANGEDI}, {"User", EVENT_USER}, {"VimEnter", EVENT_VIMENTER}, {"VimLeave", EVENT_VIMLEAVE}, @@ -9138,6 +9140,24 @@ has_cursormovedI() } /* + * Return TRUE when there is a TextChanged autocommand defined. + */ + int +has_textchanged() +{ + return (first_autopat[(int)EVENT_TEXTCHANGED] != NULL); +} + +/* + * Return TRUE when there is a TextChangedI autocommand defined. + */ + int +has_textchangedI() +{ + return (first_autopat[(int)EVENT_TEXTCHANGEDI] != NULL); +} + +/* * Return TRUE when there is an InsertCharPre autocommand defined. */ int