# HG changeset patch # User Bram Moolenaar # Date 1318431433 -7200 # Node ID dc3f90a73fb375092ea9d870ae48ff31b31a56ab # Parent 8b9591ccbb682c975c65ad235194f64701e1ad4b 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) diff --git a/src/option.c b/src/option.c --- a/src/option.c +++ b/src/option.c @@ -7806,6 +7806,10 @@ set_bool_option(opt_idx, varp, value, op /* Only de-activate it here, it will be enabled when changing mode. */ if (p_imdisable) im_set_active(FALSE); + else if (State & INSERT) + /* When the option is set from an autocommand, it may need to take + * effect right away. */ + im_set_active(curbuf->b_p_iminsert == B_IMODE_IM); } #endif diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -710,6 +710,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 335, +/**/ 334, /**/ 333,