Revert #1019 to fix nvim artifacts and flickering. (#1021)

* Revert "Use :mode only in neovim. MacVim still needs to use :redraw! (#1019)"

This reverts commit 4ac07f52a3.

* If not Neovim, use `:redraw!` as was done before.

* Update version number.

* Fix punctuation in NERDTree Menu instructions.
This commit is contained in:
Phil Runninger
2019-07-14 15:17:56 -04:00
committed by GitHub
parent 4ac07f52a3
commit 63c59208c1
5 changed files with 18 additions and 29 deletions

View File

@@ -22,24 +22,8 @@ endfunction
" SECTION: General Functions {{{1
"============================================================
"FUNCTION: nerdtree#redraw(bang)
" Redraws the screen (Neovim uses the mode statement). If bang is TRUE, use
" redraw! instead of redraw.
function! nerdtree#redraw(bang)
if has('nvim')
mode
else
if a:bang
redraw!
else
redraw
endif
endif
endfunction
"FUNCTION: nerdtree#slash()
" Returns the directory separator based on OS and &shellslash
function! nerdtree#slash()
if nerdtree#runningWindows()
if exists('+shellslash') && &shellslash
return '/'
@@ -232,7 +216,7 @@ endfunction
"Args:
"msg: the message to echo
function! nerdtree#echo(msg)
call nerdtree#redraw(0)
redraw
echomsg empty(a:msg) ? "" : ("NERDTree: " . a:msg)
endfunction