diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-07-22 23:29:02 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-02 12:00:01 -0400 |
commit | f3964c170e9719af26d00b82e10be37a80693d15 (patch) | |
tree | 0d8777cca088ca22a11e3563ec436358297d4c75 | |
parent | 2d34ddb3c3a3ebbc515e2f8c37c63d0c7fed1387 (diff) | |
download | rneovim-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
-rw-r--r-- | src/nvim/testdir/runtest.vim | 5 |
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 |