ex_cmds: port :eval

Cherry-picked from patch v8.1.1807.
Required for patch v8.2.2761.
This commit is contained in:
Jan Edmund Lazo
2021-04-14 17:37:38 -04:00
parent b8c0fac762
commit b34dc4c458
3 changed files with 31 additions and 0 deletions

View File

@@ -788,6 +788,15 @@ void 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) {
tv_clear(&tv);
}
}
/*
* ":if".