mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-10 20:33:50 -05:00
correct the comments above s:GetSelectedBookmark()
This commit is contained in:
@@ -2195,8 +2195,7 @@ function! s:GetPath(ln)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: s:GetSelectedBookmark() {{{2
|
"FUNCTION: s:GetSelectedBookmark() {{{2
|
||||||
"Returns the current node if it is a dir node, or else returns the current
|
"returns the bookmark the cursor is over in the bookmarks table or {}
|
||||||
"nodes parent
|
|
||||||
function! s:GetSelectedBookmark()
|
function! s:GetSelectedBookmark()
|
||||||
let line = getline(".")
|
let line = getline(".")
|
||||||
let name = substitute(line, '^>\(.\{-}\) .\+$', '\1', '')
|
let name = substitute(line, '^>\(.\{-}\) .\+$', '\1', '')
|
||||||
|
|||||||
Reference in New Issue
Block a user