comparison 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
comparison
equal deleted inserted replaced
4231:1ad8b8becf2a 4232:0fcb050fd79d
7711 {"Syntax", EVENT_SYNTAX}, 7711 {"Syntax", EVENT_SYNTAX},
7712 {"TabEnter", EVENT_TABENTER}, 7712 {"TabEnter", EVENT_TABENTER},
7713 {"TabLeave", EVENT_TABLEAVE}, 7713 {"TabLeave", EVENT_TABLEAVE},
7714 {"TermChanged", EVENT_TERMCHANGED}, 7714 {"TermChanged", EVENT_TERMCHANGED},
7715 {"TermResponse", EVENT_TERMRESPONSE}, 7715 {"TermResponse", EVENT_TERMRESPONSE},
7716 {"TextChanged", EVENT_TEXTCHANGED},
7717 {"TextChangedI", EVENT_TEXTCHANGEDI},
7716 {"User", EVENT_USER}, 7718 {"User", EVENT_USER},
7717 {"VimEnter", EVENT_VIMENTER}, 7719 {"VimEnter", EVENT_VIMENTER},
7718 {"VimLeave", EVENT_VIMLEAVE}, 7720 {"VimLeave", EVENT_VIMLEAVE},
7719 {"VimLeavePre", EVENT_VIMLEAVEPRE}, 7721 {"VimLeavePre", EVENT_VIMLEAVEPRE},
7720 {"WinEnter", EVENT_WINENTER}, 7722 {"WinEnter", EVENT_WINENTER},
9133 */ 9135 */
9134 int 9136 int
9135 has_cursormovedI() 9137 has_cursormovedI()
9136 { 9138 {
9137 return (first_autopat[(int)EVENT_CURSORMOVEDI] != NULL); 9139 return (first_autopat[(int)EVENT_CURSORMOVEDI] != NULL);
9140 }
9141
9142 /*
9143 * Return TRUE when there is a TextChanged autocommand defined.
9144 */
9145 int
9146 has_textchanged()
9147 {
9148 return (first_autopat[(int)EVENT_TEXTCHANGED] != NULL);
9149 }
9150
9151 /*
9152 * Return TRUE when there is a TextChangedI autocommand defined.
9153 */
9154 int
9155 has_textchangedI()
9156 {
9157 return (first_autopat[(int)EVENT_TEXTCHANGEDI] != NULL);
9138 } 9158 }
9139 9159
9140 /* 9160 /*
9141 * Return TRUE when there is an InsertCharPre autocommand defined. 9161 * Return TRUE when there is an InsertCharPre autocommand defined.
9142 */ 9162 */