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
committed by Douglas Drumond
parent 11348ce096
commit da1fb1ef57
2 changed files with 11 additions and 2 deletions
+9 -2
View File
@@ -8694,13 +8694,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,
@@ -8710,7 +8716,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;
}
+2
View File
@@ -756,6 +756,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
633,
/**/
632,
/**/