fix a bug with refreshing after copying
This commit is contained in:
parent
ce9fece626
commit
7a1dbcbdb0
@ -169,7 +169,7 @@ endfunction
|
|||||||
function! s:oTreeFileNode.Copy(dest) dict
|
function! s:oTreeFileNode.Copy(dest) dict
|
||||||
call self.path.Copy(a:dest)
|
call self.path.Copy(a:dest)
|
||||||
let newPath = s:oPath.New(a:dest)
|
let newPath = s:oPath.New(a:dest)
|
||||||
let parentNode = t:NERDTreeRoot.FindNode(newPath.GetDir())
|
let parentNode = t:NERDTreeRoot.FindNode(newPath.GetParent())
|
||||||
if !empty(parentNode)
|
if !empty(parentNode)
|
||||||
call parentNode.Refresh()
|
call parentNode.Refresh()
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user