diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-02-09 23:54:54 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-02-09 23:54:54 +0000 |
commit | 3d0a603fa9082519d2552c4888d9fe5732947e8f (patch) | |
tree | 3a64f06035001adac63272d9c7d0c42c7452359b /src | |
parent | 754b56089f334509ee23f70fe9d046120e91f0e6 (diff) | |
download | vim-3d0a603fa9082519d2552c4888d9fe5732947e8f.zip |
updated for version 7.0195
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 2661c26bb..0b96d16cc 100644 --- a/src/main.c +++ b/src/main.c @@ -988,6 +988,17 @@ main_loop(cmdwin, noexmode) skip_redraw = FALSE; else if (do_redraw || stuff_empty()) { +#ifdef FEAT_AUTOCMD + /* Trigger CursorMoved if the cursor moved. */ + if (!finish_op && has_cursormoved() + && !equalpos(last_cursormoved, curwin->w_cursor)) + + { + apply_autocmds(EVENT_CURSORMOVED, NULL, NULL, FALSE, curbuf); + last_cursormoved = curwin->w_cursor; + } +#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. */ |