changeset 28023:146817021fc3 v8.2.4536

patch 8.2.4536: debugger test fails when breaking on expression Commit: https://github.com/vim/vim/commit/cf6662082f89de3458c69c4390055ab99aa7dd22 Author: Bram Moolenaar <Bram@vim.org> 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".
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Mar 2022 14:30:03 +0100
parents 48e44a36c25c
children 692743237166
files src/debugger.c src/version.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,