1
0
forked from aniani/vim

patch 8.2.0044: expression type is used inconsistently

Problem:    Expression type is used inconsistently.
Solution:   Add "ETYPE_IS" and "ETYPE_ISNOT" as separate enum values.  Rename
            "TYPE_" to "ETYPE_" to avoid confusion.
This commit is contained in:
Bram Moolenaar
2019-12-25 18:14:14 +01:00
parent 818fed7a5e
commit 07a3db89b8
5 changed files with 77 additions and 72 deletions

View File

@@ -929,8 +929,7 @@ debuggy_find(
}
else
{
if (typval_compare(tv, bp->dbg_val, TYPE_EQUAL,
TRUE, FALSE) == OK
if (typval_compare(tv, bp->dbg_val, ETYPE_IS, FALSE) == OK
&& tv->vval.v_number == FALSE)
{
typval_T *v;