0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1980: Vim9: some tests are not done at the script level

Problem:    Vim9: some tests are not done at the script level.
Solution:   Use CheckDefAndScriptSuccess() in more places.  Fix uncovered
            problems.
This commit is contained in:
Bram Moolenaar
2020-11-12 20:16:39 +01:00
parent 47c5ea44b9
commit 659bb2275e
5 changed files with 683 additions and 670 deletions

View File

@@ -3438,7 +3438,15 @@ eval7_leader(
}
#ifdef FEAT_FLOAT
if (rettv->v_type == VAR_FLOAT)
f = !f;
{
if (in_vim9script())
{
rettv->v_type = VAR_BOOL;
val = f == 0.0 ? VVAL_TRUE : VVAL_FALSE;
}
else
f = !f;
}
else
#endif
{