Mercurial > vim
changeset 1584:7387540b6e52 v7.1.297
updated for version 7.1-297
author | vimboss |
---|---|
date | Wed, 07 May 2008 19:46:51 +0000 |
parents | ebe059f69b9e |
children | 4a317df16962 |
files | src/gui.c src/version.c |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui.c +++ b/src/gui.c @@ -4855,6 +4855,15 @@ gui_update_screen() { 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 */