From 31dbf1c139bf7fd6dee60e4b127da2a51cbef128 Mon Sep 17 00:00:00 2001 From: Jason Franklin Date: Sat, 11 Nov 2017 12:37:04 -0500 Subject: [PATCH] Silence messages when opening a file with "T" --- lib/nerdtree/opener.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/nerdtree/opener.vim b/lib/nerdtree/opener.vim index ef8ab7f..974d99d 100644 --- a/lib/nerdtree/opener.vim +++ b/lib/nerdtree/opener.vim @@ -244,15 +244,20 @@ endfunction " FUNCTION: Opener._openFile() {{{1 function! s:Opener._openFile() + if self._reuseWindow() return endif call self._gotoTargetWin() - call self._path.edit() + if self._stay + silent call self._path.edit() call self._restoreCursorPos() + return endif + + call self._path.edit() endfunction " FUNCTION: Opener._openDirectory(node) {{{1