From 29db365e4c15196e5f075f423436459d208ff42a Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 2 Feb 2019 07:37:26 -0500 Subject: [PATCH] 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 --- src/nvim/testdir/setup.vim | 3 +++ 1 file changed, 3 insertions(+) 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)