From 25e42231d3ee27feec2568fa4be2aa2bfba82ae5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 4 Aug 2019 15:04:10 +0200 Subject: patch 8.1.1807: more functions can be used as a method Problem: More functions can be used as a method. Solution: Add append(), appendbufline(), assert_equal(), etc. Also add the :eval command. --- src/ex_eval.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/ex_eval.c') 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 @@ -870,6 +870,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". */ -- cgit v1.2.1