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.
07a3db89b8
This commit is contained in:
Jan Edmund Lazo
2021-04-09 21:46:02 -04:00
parent 2e156a3b7d
commit 53cbfd0220
3 changed files with 87 additions and 73 deletions

View File

@@ -876,7 +876,7 @@ debuggy_find(
debug_newval = typval_tostring(bp->dbg_val);
line = true;
} 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) {
line = true;
debug_oldval = typval_tostring(bp->dbg_val);