0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0229: compare instructions not tested

Problem:    Compare instructions not tested.
Solution:   Add test cases.  Fix disassemble with line continuation.
This commit is contained in:
Bram Moolenaar
2020-02-07 22:09:54 +01:00
parent 348808f7c0
commit f2460a3aec
4 changed files with 116 additions and 16 deletions

View File

@@ -1622,6 +1622,7 @@ ex_disassemble(exarg_T *eap)
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 @@ ex_disassemble(exarg_T *eap)
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)