mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
Simplify the commentary for the "getPath()" method
This commit is contained in:
@@ -141,15 +141,10 @@ function! s:UI.New(nerdtree)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" FUNCTION: s:UI.getPath(ln) {{{1
|
" FUNCTION: s:UI.getPath(ln) {{{1
|
||||||
" Gets the full path to the node that is rendered on the given line number
|
" Return the "Path" object for the node that is rendered on the given line
|
||||||
"
|
" number. If the "up a dir" line is selected, return the "Path" object for
|
||||||
" Args:
|
" the parent of the root. Return the empty dictionary if the given line
|
||||||
" ln: the line number to get the path for
|
" does not reference a tree node.
|
||||||
"
|
|
||||||
" Return:
|
|
||||||
" A path if a node was selected, {} if nothing is selected.
|
|
||||||
" If the 'up a dir' line was selected then the path to the parent of the
|
|
||||||
" current root is returned
|
|
||||||
function! s:UI.getPath(ln)
|
function! s:UI.getPath(ln)
|
||||||
let line = getline(a:ln)
|
let line = getline(a:ln)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user