Problem: When using Insert mode completion combined with autocommands the
redo command may not work.
Solution: Do not save the redo buffer when executing autocommands. (Yasuhiro
Matsumoto)
#ifdef FEAT_PROFILE
proftime_T wait_time;
#endif
+ int did_save_redobuff = FALSE;
/*
* Quickly return if there are no autocommands for this event or
if (!autocmd_busy)
{
save_search_patterns();
- saveRedobuff();
+ if (!ins_compl_active())
+ {
+ saveRedobuff();
+ did_save_redobuff = TRUE;
+ }
did_filetype = keep_filetype;
}
if (!autocmd_busy)
{
restore_search_patterns();
- restoreRedobuff();
+ if (did_save_redobuff)
+ restoreRedobuff();
did_filetype = FALSE;
while (au_pending_free_buf != NULL)
{
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 630,
/**/
629,
/**/