aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/setup.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-04-15 02:37:22 +0200
committerGitHub <noreply@github.com>2018-04-15 02:37:22 +0200
commita7e7f7bd83abc5c31008e40556f794d9b00db431 (patch)
tree1e0fdc80c9dd08aff01735a30aed9c2d79792f7d /src/nvim/testdir/setup.vim
parentee4e1fd8ecf1747b55d2968084047552429cedee (diff)
parent51b9d85bb47495014968922d4adff5319ba44900 (diff)
downloadrneovim-a7e7f7bd83abc5c31008e40556f794d9b00db431.tar.gz
rneovim-a7e7f7bd83abc5c31008e40556f794d9b00db431.tar.bz2
rneovim-a7e7f7bd83abc5c31008e40556f794d9b00db431.zip
Merge #8160 'win: oldtests: prefer cmd.exe'
Diffstat (limited to 'src/nvim/testdir/setup.vim')
-rw-r--r--src/nvim/testdir/setup.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/setup.vim b/src/nvim/testdir/setup.vim
index 7d6dd0c7ce..aac9fefef4 100644
--- a/src/nvim/testdir/setup.vim
+++ b/src/nvim/testdir/setup.vim
@@ -17,3 +17,11 @@ let &packpath = &rtp
" Make sure $HOME does not get read or written.
let $HOME = '/does/not/exist'
+
+" Use default shell on Windows to avoid segfault, caused by TUI
+if has('win32')
+ let $SHELL = ''
+ let $TERM = ''
+ let &shell = empty($COMSPEC) ? exepath('cmd.exe') : $COMSPEC
+ set shellcmdflag=/s/c shellxquote=\" shellredir=>%s\ 2>&1
+endif