mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
put the cursor on the new root after :MarkToRoot
This commit is contained in:
@@ -2839,6 +2839,7 @@ function! s:MarkToRoot(name)
|
|||||||
let targetNode = s:GetNodeForMark(a:name, 1)
|
let targetNode = s:GetNodeForMark(a:name, 1)
|
||||||
call targetNode.MakeRoot()
|
call targetNode.MakeRoot()
|
||||||
call s:RenderView()
|
call s:RenderView()
|
||||||
|
call s:PutCursorOnNode(targetNode, 0, 0)
|
||||||
endfunction
|
endfunction
|
||||||
" FUNCTION: s:OpenEntrySplit() {{{2
|
" FUNCTION: s:OpenEntrySplit() {{{2
|
||||||
" Opens the currently selected file from the explorer in a
|
" Opens the currently selected file from the explorer in a
|
||||||
|
|||||||
Reference in New Issue
Block a user