Patch 8.2.4536

5 views
Skip to first unread message

Bram Moolenaar

unread,
Mar 10, 2022, 8:30:37 AM3/10/22
to vim...@googlegroups.com

Patch 8.2.4536 (after 8.2.4534)
Problem: Debugger test fails when breaking on expression.
Solution: Compare strings with "==" instead of "is".
Files: src/debugger.c


*** ../vim-8.2.4535/src/debugger.c 2021-12-31 22:48:56.575368905 +0000
--- src/debugger.c 2022-03-10 13:26:11.684724988 +0000
***************
*** 989,995 ****
}
else
{
! if (typval_compare(tv, bp->dbg_val, EXPR_IS, FALSE) == OK
&& tv->vval.v_number == FALSE)
{
typval_T *v;
--- 989,1000 ----
}
else
{
! // 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;
*** ../vim-8.2.4535/src/version.c 2022-03-10 12:23:59.410154437 +0000
--- src/version.c 2022-03-10 13:23:52.369061103 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4536,
/**/

--
hundred-and-one symptoms of being an internet addict:
221. Your wife melts your keyboard in the oven.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages