options: setlocal should only set local value

For 'iminsert' and 'imsearch' the global value was always changed.
This commit is contained in:
Jakob Schnitzer
2017-03-26 13:20:44 +02:00
parent eb0e94f71b
commit e47622f26b
2 changed files with 22 additions and 2 deletions

View File

@@ -4120,7 +4120,6 @@ static char *set_num_option(int opt_idx, char_u *varp, long value,
errmsg = e_invarg;
curbuf->b_p_iminsert = B_IMODE_NONE;
}
p_iminsert = curbuf->b_p_iminsert;
showmode();
/* Show/unshow value of 'keymap' in status lines. */
status_redraw_curbuf();
@@ -4134,7 +4133,6 @@ static char *set_num_option(int opt_idx, char_u *varp, long value,
errmsg = e_invarg;
curbuf->b_p_imsearch = B_IMODE_NONE;
}
p_imsearch = curbuf->b_p_imsearch;
}
/* if 'titlelen' has changed, redraw the title */
else if (pp == &p_titlelen) {