Skip to content

Commit 81c3c89

Browse files
committed
patch 8.0.1619: Win32 GUI: crash when winpty is not installed
Problem: Win32 GUI: crash when winpty is not installed and trying to use :shell in a terminal window. Solution: Check for NULL return form term_start(). (Yasuhiro Matsumoto, closes #2727)
1 parent ecadf43 commit 81c3c89

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/os_win32.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4824,6 +4824,8 @@ mch_call_shell_terminal(
48244824
argvar[0].vval.v_string = newcmd;
48254825
argvar[1].v_type = VAR_UNKNOWN;
48264826
buf = term_start(argvar, NULL, &opt, TERM_START_SYSTEM);
4827+
if (buf == NULL)
4828+
return 255;
48274829

48284830
/* Find a window to make "buf" curbuf. */
48294831
aucmd_prepbuf(&aco, buf);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ static char *(features[]) =
766766

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1619,
769771
/**/
770772
1618,
771773
/**/

0 commit comments

Comments
 (0)