hi Bram,
How to reproduce
- exec gvim.exe on MS-Windows.
- :browse w
- IM(Input method) is On in filename textbox.
- "Cancel" click.
Expect behavior
IM is Off.
Actual behavior
IM is On (in normal mode!!)
Below is patch. Please check.
Regards,
--
Hirohito Higashi
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff -r 161d01cbb165 src/message.c
--- a/src/message.c Fri Apr 13 23:04:47 2012 +0200
+++ b/src/message.c Thu Apr 19 00:38:27 2012 +0900
@@ -3745,6 +3745,9 @@
static char_u *last_dir = NULL; /* last used directory */
char_u *tofree = NULL;
int save_browse = cmdmod.browse;
+# ifdef USE_IM_CONTROL
+ int old_im_stat = im_get_status();
+# endif
/* Must turn off browse to avoid that autocommands will get the
* flag too! */
@@ -3880,6 +3883,11 @@
}
}
+# ifdef USE_IM_CONTROL
+ /* Restore the Input Method. */
+ im_set_active(old_im_stat);
+# endif
+
vim_free(tofree);
cmdmod.browse = save_browse;