diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-11-05 09:53:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-11-05 09:53:23 +0100 |
commit | eda73607a73fe5ff07eb52981df19c5bae129f70 (patch) | |
tree | cd36bd136fd8a7d24ff4d88d99de4a83f8df32a4 /src/ex_docmd.c | |
parent | 086329d3f6b1182b6817433a1c498e1e746d2a3b (diff) |
updated for version 7.4.494v7.4.494
Problem: Cursor shape is wrong after a CompleteDone autocommand.
Solution: Update the cursor and mouse shape after ":normal" restores the
state. (Jacob Niehus)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 15ce34247c..35e44f0f3c 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -9526,8 +9526,15 @@ ex_normal(eap) msg_didout |= save_msg_didout; /* don't reset msg_didout now */ /* Restore the state (needed when called from a function executed for - * 'indentexpr'). */ + * 'indentexpr'). Update the mouse and cursor, they may have changed. */ State = save_State; +#ifdef FEAT_MOUSE + setmouse(); +#endif +#ifdef CURSOR_SHAPE + ui_cursor_shape(); /* may show different cursor shape */ +#endif + #ifdef FEAT_MBYTE vim_free(arg); #endif |