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:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user