diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-05-07 19:46:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-05-07 19:46:51 +0000 |
commit | ec80df74ac6cc5f2de3e23474586827bddc5a578 (patch) | |
tree | 58a99d1ffbb88f87b443d632fcd27b37807cfd21 /src/gui.c | |
parent | 588ebeb7a5a7ae7c86b4fe5c3aa34ad117b93b70 (diff) | |
download | vim-git-ec80df74ac6cc5f2de3e23474586827bddc5a578.tar.gz |
updated for version 7.1-297v7.1.297
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 */ |