summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-09 23:54:54 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-09 23:54:54 +0000
commit3d0a603fa9082519d2552c4888d9fe5732947e8f (patch)
tree3a64f06035001adac63272d9c7d0c42c7452359b /src
parent754b56089f334509ee23f70fe9d046120e91f0e6 (diff)
downloadvim-3d0a603fa9082519d2552c4888d9fe5732947e8f.zip
updated for version 7.0195
Diffstat (limited to 'src')
-rw-r--r--src/main.c11
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. */