changeset 12098:bdeb41cb755a v8.0.0929

patch 8.0.0929: :term without argument does not work commit https://github.com/vim/vim/commit/2438ae3d678288c4726d2e393d1c66fd5cc52623 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 13 17:38:11 2017 +0200 patch 8.0.0929: :term without argument does not work Problem: :term without argument does not work. Solution: Use shell for empty command. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/1970)
author Christian Brabandt <cb@256bit.org>
date Sun, 13 Aug 2017 17:45:04 +0200
parents 173ae140a969
children 3aed6fd3a25d
files src/terminal.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -38,7 +38,6 @@
  * in tl_scrollback are no longer used.
  *
  * TODO:
- * - Make argument list work on MS-Windows. #1954
  * - To set BS correctly, check get_stty(); Pass the fd of the pty.
  *   For the GUI fill termios with default values, perhaps like pangoterm:
  *   http://bazaar.launchpad.net/~leonerd/pangoterm/trunk/view/head:/main.c#L134
@@ -464,6 +463,8 @@ ex_terminal(exarg_T *eap)
 	}
 	cmd = skipwhite(p);
     }
+    if (cmd == NULL || *cmd == NUL)
+	cmd = p_sh;
 
     if (eap->addr_count == 2)
     {
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    929,
+/**/
     928,
 /**/
     927,