0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

updated for version 7.3.819

Problem:    Compiling without +eval and with Python isn't working.
Solution:   Add the eval feature when building with Python.
This commit is contained in:
Bram Moolenaar
2013-02-14 22:11:39 +01:00
parent 707060e2ee
commit b2c5a5ac79
7 changed files with 78 additions and 68 deletions

View File

@@ -2292,7 +2292,9 @@ op_function(oap)
{
#ifdef FEAT_EVAL
char_u *(argv[1]);
# ifdef FEAT_VIRTUALEDIT
int save_virtual_op = virtual_op;
# endif
if (*p_opfunc == NUL)
EMSG(_("E774: 'operatorfunc' is empty"));
@@ -2312,13 +2314,17 @@ op_function(oap)
else
argv[0] = (char_u *)"char";
# ifdef FEAT_VIRTUALEDIT
/* Reset virtual_op so that 'virtualedit' can be changed in the
* function. */
virtual_op = MAYBE;
# endif
(void)call_func_retnr(p_opfunc, 1, argv, FALSE);
# ifdef FEAT_VIRTUALEDIT
virtual_op = save_virtual_op;
# endif
}
#else
EMSG(_("E775: Eval feature not available"));