diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-02-02 07:37:26 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-02-02 07:38:53 -0500 |
commit | 29db365e4c15196e5f075f423436459d208ff42a (patch) | |
tree | 0f6293ced44722901e89daf469e928e38abb758c /src | |
parent | f89d0d8230f34dca49eddbea179d274955b572b9 (diff) | |
download | rneovim-29db365e4c15196e5f075f423436459d208ff42a.tar.gz rneovim-29db365e4c15196e5f075f423436459d208ff42a.tar.bz2 rneovim-29db365e4c15196e5f075f423436459d208ff42a.zip |
vim-patch:8.0.1045: running tests may pollute shell history
Problem: Running tests may pollute shell history. (Manuel Ortega)
Solution: Make $HISTFILE empty.
https://github.com/vim/vim/commit/6a8691d483914606213a24356a9124fa41c93b69
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/setup.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/setup.vim b/src/nvim/testdir/setup.vim index c7c3b378cc..011433f19e 100644 --- a/src/nvim/testdir/setup.vim +++ b/src/nvim/testdir/setup.vim @@ -24,6 +24,9 @@ let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log' set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after let &packpath = &rtp +" Avoid storing shell history. +let $HISTFILE = "" + " Make sure $HOME does not get read or written. let $HOME = expand(getcwd() . '/XfakeHOME') if !isdirectory($HOME) |