]> granicus.if.org Git - vim/commitdiff
patch 8.1.2204: crash on exit when closing terminals v8.1.2204
authorBram Moolenaar <Bram@vim.org>
Wed, 23 Oct 2019 21:16:45 +0000 (23:16 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 23 Oct 2019 21:16:45 +0000 (23:16 +0200)
Problem:    Crash on exit when closing terminals. (Corey Hickey)
Solution:   Actually wait for the job to stop. (closes #5100)

src/terminal.c
src/version.c

index 07b2e973e076ef94fc5d9abb6ecc70dc24856347..b50198ca5ae6d739585cad278d95303de353dbb1 100644 (file)
@@ -1494,7 +1494,7 @@ term_try_stop_job(buf_T *buf)
        if (job->jv_status >= JOB_ENDED)
            return OK;
 
-       ui_delay(10L, FALSE);
+       ui_delay(10L, TRUE);
        term_flush_messages();
     }
     return FAIL;
index e1bc377f970012047fc9287ab708b1683543f003..09e8ad3dc3241948f6df3b7e6b0ee6d852c48e1b 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2204,
 /**/
     2203,
 /**/