Remove redraw! while still clearing last message empty string. (#979)

This commit is contained in:
Phil Runninger 2019-04-16 09:55:20 -04:00 committed by GitHub
parent 7513f256aa
commit e126b8745d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -169,7 +169,7 @@ endfunction
"msg: the message to echo
function! nerdtree#echo(msg)
redraw
echomsg "NERDTree: " . a:msg
echomsg empty(a:msg) ? "" : ("NERDTree: " . a:msg)
endfunction
"FUNCTION: nerdtree#echoError {{{2

View File

@ -492,7 +492,7 @@ function! s:openNodeRecursively(node)
call nerdtree#echo("Recursively opening node. Please wait...")
call a:node.openRecursively()
call b:NERDTree.render()
redraw!
call nerdtree#echo("")
endfunction
" FUNCTION: s:previewBookmark(bookmark) {{{1
@ -543,8 +543,9 @@ function! s:refreshRoot()
call nerdtree#exec(g:NERDTree.GetWinNum() . "wincmd w")
call b:NERDTree.root.refresh()
call b:NERDTree.render()
redraw!
redraw
call nerdtree#exec(l:curWin . "wincmd w")
call nerdtree#echo("")
endfunction
" FUNCTION: s:refreshCurrent(node) {{{1
@ -558,7 +559,7 @@ function! s:refreshCurrent(node)
call nerdtree#echo("Refreshing node. This could take a while...")
call node.refresh()
call b:NERDTree.render()
redraw!
call nerdtree#echo("")
endfunction
" FUNCTION: nerdtree#ui_glue#setupCommands() {{{1

View File

@ -432,7 +432,7 @@ function! s:TreeDirNode._initChildren(silent)
call self.sortChildren()
redraw!
call nerdtree#echo("")
if invalidFilesFound
call nerdtree#echoWarning(invalidFilesFound . " file(s) could not be loaded into the NERD tree")