blob: 7bc717a0615ef0e863b9868b6f3727182203c3c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0358
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------
Patch 8.1.0358
Problem: Crash when using term_dumpwrite() after the job finished.
Solution: Check for a finished job and give an error message.
Files: src/terminal.c
*** ../vim-8.1.0357/src/terminal.c 2018-08-24 21:30:24.818557489 +0200
--- src/terminal.c 2018-09-09 18:24:15.762463460 +0200
***************
*** 3871,3876 ****
--- 3871,3881 ----
if (buf == NULL)
return;
term = buf->b_term;
+ if (term->tl_vterm == NULL)
+ {
+ EMSG(_("E958: Job already finished"));
+ return;
+ }
if (argvars[2].v_type != VAR_UNKNOWN)
{
*** ../vim-8.1.0357/src/version.c 2018-09-09 15:56:03.143904759 +0200
--- src/version.c 2018-09-09 19:55:31.327054155 +0200
***************
*** 796,797 ****
--- 796,799 ----
{ /* Add new patch number below this line */
+ /**/
+ 358,
/**/
--
"Space is big. Really big. You just won't believe how vastly hugely mind-
bogglingly big it is. I mean, you may think it's a long way down the
road to the chemist, but that's just peanuts to space."
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|