0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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.
This commit is contained in:
Bram Moolenaar
2019-08-04 15:04:10 +02:00
parent 7cc535175a
commit 25e42231d3
9 changed files with 658 additions and 544 deletions

View File

@@ -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".
*/