To: vim_dev@googlegroups.com Subject: Patch 8.0.1619 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1619 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) Files: src/os_win32.c *** ../vim-8.0.1618/src/os_win32.c 2018-03-19 21:44:33.712530742 +0100 --- src/os_win32.c 2018-03-20 11:38:27.005468117 +0100 *************** *** 4824,4829 **** --- 4824,4831 ---- argvar[0].vval.v_string = newcmd; argvar[1].v_type = VAR_UNKNOWN; buf = term_start(argvar, NULL, &opt, TERM_START_SYSTEM); + if (buf == NULL) + return 255; /* Find a window to make "buf" curbuf. */ aucmd_prepbuf(&aco, buf); *** ../vim-8.0.1618/src/version.c 2018-03-20 11:17:00.588795371 +0100 --- src/version.c 2018-03-20 11:40:55.340623947 +0100 *************** *** 768,769 **** --- 768,771 ---- { /* Add new patch number below this line */ + /**/ + 1619, /**/ -- "You know, it's at times like this when I'm trapped in a Vogon airlock with a man from Betelgeuse and about to die of asphyxiation in deep space that I really wish I'd listened to what my mother told me when I was young!" "Why, what did she tell you?" "I don't know, I didn't listen!" -- Arthur Dent and Ford Prefect in 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 ///