summaryrefslogtreecommitdiffstats
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-27 23:58:35 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-27 23:58:35 +0000
commit5e3cb7e8699f855193179a8cb799d1087f4a2ac9 (patch)
tree297e019074e2c2b85d5151701fcfae03bf02ceb9 /src/misc1.c
parenteddf53b02e2b007208b19c74fb616be2c0839b36 (diff)
updated for version 7.0209v7.0209
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 09b9ab1dc1..c9deb85fe8 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -2833,6 +2833,12 @@ changed_common(lnum, col, lnume, xtra)
* since it notices b_mod_set and then uses b_mod_*. */
if (must_redraw < VALID)
must_redraw = VALID;
+
+#ifdef FEAT_AUTOCMD
+ /* when the cursor line is changed always trigger CursorMoved */
+ if (lnum <= curwin->w_cursor.lnum && lnume > curwin->w_cursor.lnum)
+ last_cursormoved.lnum = 0;
+#endif
}
/*