1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: When 'imdisable' is reset from an autocommand in Insert mode it
13 Solution: Call im_set_active() in Insert mode. (Taro Muraoka)
17 *** ../vim-7.3.334/src/option.c 2011-09-21 13:40:13.000000000 +0200
18 --- src/option.c 2011-10-12 14:09:46.000000000 +0200
22 /* Only de-activate it here, it will be enabled when changing mode. */
25 + else if (State & INSERT)
26 + /* When the option is set from an autocommand, it may need to take
27 + * effect right away. */
28 + im_set_active(curbuf->b_p_iminsert == B_IMODE_IM);
32 *** ../vim-7.3.334/src/version.c 2011-10-12 14:11:43.000000000 +0200
33 --- src/version.c 2011-10-12 16:56:30.000000000 +0200
37 { /* Add new patch number below this line */
43 Time is money. Especially if you make clocks.
45 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
46 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
47 \\\ an exciting new programming language -- http://www.Zimbu.org ///
48 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///