summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-02-14 22:11:39 +0100
committerBram Moolenaar <Bram@vim.org>2013-02-14 22:11:39 +0100
commitb2c5a5ac79848b7f889a8b279eed40be3064feca (patch)
treef3d8827ab4a29d98a252c8b533bda6ae752da597 /src/normal.c
parent707060e2ee59e50096e1a96abf00e18293fb0569 (diff)
downloadvim-git-b2c5a5ac79848b7f889a8b279eed40be3064feca.tar.gz
updated for version 7.3.819v7.3.819
Problem: Compiling without +eval and with Python isn't working. Solution: Add the eval feature when building with Python.
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index b7f3dd4f5..c79b67b1c 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -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"));