]> granicus.if.org Git - vim/commitdiff
patch 8.2.1457: Vim9: the output of :disassemble cannot be interrupted v8.2.1457
authorBram Moolenaar <Bram@vim.org>
Sat, 15 Aug 2020 11:49:17 +0000 (13:49 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 15 Aug 2020 11:49:17 +0000 (13:49 +0200)
Problem:    Vim9: the output of :disassemble cannot be interrupted.
Solution:   Check got_int. (closes #6715)

src/version.c
src/vim9execute.c

index cc3b9fd055ec79810ccdab36170ad030db985d89..4c191e2209b4c1fdf3a22cf9141865148e3bc07e 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1457,
 /**/
     1456,
 /**/
index 0f7f18c3329819710c817176e8603bf7dbdb896a..424d42a4970a30affe46818994cc24d6369b49f1 100644 (file)
@@ -3182,6 +3182,11 @@ ex_disassemble(exarg_T *eap)
                              break;
            case ISN_DROP: smsg("%4d DROP", current); break;
        }
+
+       out_flush();        // output one line at a time
+       ui_breakcheck();
+       if (got_int)
+           break;
     }
 }