patch 8.2.0229: compare instructions not tested
Problem: Compare instructions not tested.
Solution: Add test cases. Fix disassemble with line continuation.
diff --git a/src/vim9execute.c b/src/vim9execute.c
index 1b45bf9..ed3a75b 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -1622,6 +1622,7 @@
for (current = 0; current < dfunc->df_instr_count; ++current)
{
isn_T *iptr = &instr[current];
+ char *line;
while (line_idx < iptr->isn_lnum && line_idx < ufunc->uf_lines.ga_len)
{
@@ -1630,7 +1631,9 @@
msg_puts("\n\n");
prev_current = current;
}
- msg(((char **)ufunc->uf_lines.ga_data)[line_idx++]);
+ line = ((char **)ufunc->uf_lines.ga_data)[line_idx++];
+ if (line != NULL)
+ msg(line);
}
switch (iptr->isn_type)