]> granicus.if.org Git - vim/commitdiff
patch 8.2.3057: Vim9: debugger test fails with normal features and +terminal v8.2.3057
authorBram Moolenaar <Bram@vim.org>
Sat, 26 Jun 2021 19:21:03 +0000 (21:21 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 26 Jun 2021 19:21:03 +0000 (21:21 +0200)
Problem:    Vim9: debugger test fails with normal features and +terminal.
            (Dominique PellĂ©)
Solution:   Adjust the INSTRUCTIONS macro. (closes #8460)

src/version.c
src/vim9.h

index 085801849b8b613bd97346e161e323be3ccc5bc8..6069a397b12be497605f15e79254c8ac78202eca 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3057,
 /**/
     3056,
 /**/
index 97b9a3ea874b2d2cc010df0c47adfcbba0a6dfdd..b48a2f7c94048c84684ef2fef1926b3451b15c31 100644 (file)
@@ -518,7 +518,7 @@ extern garray_T def_functions;
                : (dfunc)->df_instr))
 #else
 # define INSTRUCTIONS(dfunc) \
-       (debug_break_level > 0 \
+       (debug_break_level > 0 || dfunc->df_ufunc->uf_has_breakpoint \
                ? (dfunc)->df_instr_debug \
                : (dfunc)->df_instr)
 #endif