Remove redraw! while still clearing last message empty string. (#979)
This commit is contained in:
parent
7513f256aa
commit
e126b8745d
@ -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
|
||||
|
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user