summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-13 17:38:11 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-13 17:38:11 +0200
commit2438ae3d678288c4726d2e393d1c66fd5cc52623 (patch)
tree969e1837687a0126ec737d89a7bba7b1564af4f8 /src/terminal.c
parentdcaa61384ca76e42f7feda5640fb85b58cee03e5 (diff)
downloadvim-git-2438ae3d678288c4726d2e393d1c66fd5cc52623.tar.gz
patch 8.0.0929: :term without argument does not workv8.0.0929
Problem: :term without argument does not work. Solution: Use shell for empty command. (Yasuhiro Matsumoto, closes #1970)
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 0267e5f54..7e3acf96e 100644
--- 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)
{