comparison src/option.c @ 3129:dc3f90a73fb3 v7.3.335

updated for version 7.3.335 Problem: When 'imdisable' is reset from an autocommand in Insert mode it doesn't take effect. Solution: Call im_set_active() in Insert mode. (Taro Muraoka)
author Bram Moolenaar <bram@vim.org>
date Wed, 12 Oct 2011 16:57:13 +0200
parents 33c140e4664d
children 6672b1645306
comparison
equal deleted inserted replaced
3128:8b9591ccbb68 3129:dc3f90a73fb3
7804 else if ((int *)varp == &p_imdisable) 7804 else if ((int *)varp == &p_imdisable)
7805 { 7805 {
7806 /* Only de-activate it here, it will be enabled when changing mode. */ 7806 /* Only de-activate it here, it will be enabled when changing mode. */
7807 if (p_imdisable) 7807 if (p_imdisable)
7808 im_set_active(FALSE); 7808 im_set_active(FALSE);
7809 else if (State & INSERT)
7810 /* When the option is set from an autocommand, it may need to take
7811 * effect right away. */
7812 im_set_active(curbuf->b_p_iminsert == B_IMODE_IM);
7809 } 7813 }
7810 #endif 7814 #endif
7811 7815
7812 #ifdef FEAT_SPELL 7816 #ifdef FEAT_SPELL
7813 /* 'spell' */ 7817 /* 'spell' */