]> granicus.if.org Git - vim/commitdiff
patch 8.0.0929: :term without argument does not work v8.0.0929
authorBram Moolenaar <Bram@vim.org>
Sun, 13 Aug 2017 15:38:11 +0000 (17:38 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 13 Aug 2017 15:38:11 +0000 (17:38 +0200)
Problem:    :term without argument does not work.
Solution:   Use shell for empty command. (Yasuhiro Matsumoto, closes #1970)

src/terminal.c
src/version.c

index 0267e5f545429b82e81f2763d9f549a7c2b85271..7e3acf96e1ea618fb181cd261655d69b493961bd 100644 (file)
@@ -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)
     {
index fc4b8580ea6535a97a95ddba8675ad4909d347b8..cc7bb865d3ff58737fbcb8f7e2fe26d37f51446c 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    929,
 /**/
     928,
 /**/