summaryrefslogtreecommitdiff
path: root/src/ex_eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-04 15:04:10 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-04 15:04:10 +0200
commit25e42231d3ee27feec2568fa4be2aa2bfba82ae5 (patch)
tree8df08d27ff06c8b52054576bc68814d05553697a /src/ex_eval.c
parent7cc535175a233c6f02cdb5a364b3590560f5bfcb (diff)
downloadvim-git-25e42231d3ee27feec2568fa4be2aa2bfba82ae5.tar.gz
patch 8.1.1807: more functions can be used as a methodv8.1.1807
Problem: More functions can be used as a method. Solution: Add append(), appendbufline(), assert_equal(), etc. Also add the :eval command.
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r--src/ex_eval.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c
index 55009e5e4..25a868459 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -871,6 +871,18 @@ report_discard_pending(int pending, void *value)
/*
+ * ":eval".
+ */
+ void
+ex_eval(exarg_T *eap)
+{
+ typval_T tv;
+
+ if (eval0(eap->arg, &tv, &eap->nextcmd, !eap->skip) == OK)
+ clear_tv(&tv);
+}
+
+/*
* ":if".
*/
void