updated for version 7.1-297
diff --git a/src/gui.c b/src/gui.c
index 1524e1b..1e8ad84 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -4855,6 +4855,15 @@
{
update_topline();
validate_cursor();
+#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
update_screen(0); /* may need to update the screen */
setcursor();
out_flush(); /* make sure output has been written */