1
0
forked from aniani/vim

updated for version 7.4.633

Problem:    After 7.4.630 the problem persists.
Solution:   Also skip redo when calling a user function.
This commit is contained in:
Bram Moolenaar
2015-02-17 12:44:09 +01:00
parent eaa330e8e9
commit be20f9fa5d
2 changed files with 11 additions and 2 deletions

View File

@@ -8693,13 +8693,19 @@ call_func(funcname, len, rettv, argcount, argvars, firstline, lastline,
error = ERROR_DICT;
else
{
int did_save_redo = FALSE;
/*
* Call the user function.
* Save and restore search patterns, script variables and
* redo buffer.
*/
save_search_patterns();
saveRedobuff();
if (!ins_compl_active())
{
saveRedobuff();
did_save_redo = TRUE;
}
++fp->uf_calls;
call_user_func(fp, argcount, argvars, rettv,
firstline, lastline,
@@ -8709,7 +8715,8 @@ call_func(funcname, len, rettv, argcount, argvars, firstline, lastline,
/* Function was unreferenced while being used, free it
* now. */
func_free(fp);
restoreRedobuff();
if (did_save_redo)
restoreRedobuff();
restore_search_patterns();
error = ERROR_NONE;
}

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
633,
/**/
632,
/**/