diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-03-19 13:33:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-03-19 13:33:23 +0100 |
commit | 186628f67153726edf130015e2a8043a5d309c42 (patch) | |
tree | b78b09433f8bb96b50dc144fac757121f825c297 /src/main.c | |
parent | 090cfc1b02d5dcd98ba414ccf56e69cc38f272bd (diff) | |
download | vim-186628f67153726edf130015e2a8043a5d309c42.zip |
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.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 6c4f8ecee..cba8dce75 100644 --- a/src/main.c +++ b/src/main.c @@ -1168,6 +1168,19 @@ main_loop(cmdwin, noexmode) } #endif +#ifdef FEAT_AUTOCMD + /* Trigger TextChanged if b_changedtick differs. */ + if (!finish_op && has_textchanged() + && last_changedtick != curbuf->b_changedtick) + { + if (last_changedtick_buf == curbuf) + apply_autocmds(EVENT_TEXTCHANGED, NULL, NULL, + FALSE, curbuf); + last_changedtick_buf = curbuf; + last_changedtick = curbuf->b_changedtick; + } +#endif + #if defined(FEAT_DIFF) && defined(FEAT_SCROLLBIND) /* Scroll-binding for diff mode may have been postponed until * here. Avoids doing it for every change. */ |