aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-07-22 23:29:02 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-08-02 12:00:01 -0400
commitf3964c170e9719af26d00b82e10be37a80693d15 (patch)
tree0d8777cca088ca22a11e3563ec436358297d4c75 /src
parent2d34ddb3c3a3ebbc515e2f8c37c63d0c7fed1387 (diff)
downloadrneovim-f3964c170e9719af26d00b82e10be37a80693d15.tar.gz
rneovim-f3964c170e9719af26d00b82e10be37a80693d15.tar.bz2
rneovim-f3964c170e9719af26d00b82e10be37a80693d15.zip
vim-patch:8.2.1267: MS-Windows: tests may fail due to $PROMPT value
Problem: MS-Windows: tests may fail due to $PROMPT value. Solution: Set $PROMPT for testing. (Taro Muraoka, closes vim/vim#6510) https://github.com/vim/vim/commit/2690b5aed8b6b6070430b05dcae296cd9479c942
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/runtest.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/runtest.vim b/src/nvim/testdir/runtest.vim
index e249d499c4..2bf61b0719 100644
--- a/src/nvim/testdir/runtest.vim
+++ b/src/nvim/testdir/runtest.vim
@@ -84,6 +84,11 @@ let &runtimepath .= ','.expand($BUILD_DIR).'/runtime/'
" Always use forward slashes.
set shellslash
+if has('win32')
+ " avoid prompt that is long or contains a line break
+ let $PROMPT = '$P$G'
+endif
+
" Prepare for calling test_garbagecollect_now().
let v:testing = 1