# HG changeset patch # User Bram Moolenaar # Date 1646919003 -3600 # Node ID 146817021fc396aa5c29a6c3560e79d255ece281 # Parent 48e44a36c25ca924b7243a2b59a0fb0e645587f0 patch 8.2.4536: debugger test fails when breaking on expression Commit: https://github.com/vim/vim/commit/cf6662082f89de3458c69c4390055ab99aa7dd22 Author: Bram Moolenaar Date: Thu Mar 10 13:29:20 2022 +0000 patch 8.2.4536: debugger test fails when breaking on expression Problem: Debugger test fails when breaking on expression. Solution: Compare strings with "==" instead of "is". diff --git a/src/debugger.c b/src/debugger.c --- a/src/debugger.c +++ b/src/debugger.c @@ -989,7 +989,12 @@ debuggy_find( } else { - if (typval_compare(tv, bp->dbg_val, EXPR_IS, FALSE) == OK + // Use "==" instead of "is" for strings, that is what we + // always have done. + exprtype_T type = tv->v_type == VAR_STRING + ? EXPR_EQUAL : EXPR_IS; + + if (typval_compare(tv, bp->dbg_val, type, FALSE) == OK && tv->vval.v_number == FALSE) { typval_T *v; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4536, +/**/ 4535, /**/ 4534,