This commit is contained in:
Jason Felice
2018-08-08 18:31:39 -07:00
parent 3c41df2691
commit c6dd84e00b

View File

@@ -8680,12 +8680,13 @@ static char_u *do_insert_char_pre(int c)
char_u *res = NULL; char_u *res = NULL;
if (ins_apply_autocmds(EVENT_INSERTCHARPRE)) { if (ins_apply_autocmds(EVENT_INSERTCHARPRE)) {
/* Get the value of v:char. It may be empty or more than one // Get the value of v:char. It may be empty or more than one
* character. Only use it when changed, otherwise continue with the // character. Only use it when changed, otherwise continue with the
* original character to avoid breaking autoindent. */ // original character to avoid breaking autoindent.
if (STRCMP(buf, get_vim_var_str(VV_CHAR)) != 0) if (STRCMP(buf, get_vim_var_str(VV_CHAR)) != 0) {
res = vim_strsave(get_vim_var_str(VV_CHAR)); res = vim_strsave(get_vim_var_str(VV_CHAR));
} }
}
set_vim_var_string(VV_CHAR, NULL, -1); set_vim_var_string(VV_CHAR, NULL, -1);
textlock--; textlock--;