mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-25 17:57:24 +08:00
add oPath#MarkNames()
This commit is contained in:
parent
600f2cac14
commit
7b26dac959
|
@ -1068,6 +1068,17 @@ function! s:oPath.Equals(path) dict
|
|||
return self.Str(0) == a:path.Str(0)
|
||||
endfunction
|
||||
|
||||
"FUNCTION: oPath.MarkNames() {{{3
|
||||
function! s:oPath.MarkNames() dict
|
||||
let toReturn = []
|
||||
let marks = s:GetMarks()
|
||||
for k in keys(marks)
|
||||
if marks[k].Equals(self)
|
||||
call add(toReturn, k)
|
||||
endif
|
||||
endfor
|
||||
return toReturn
|
||||
endfunction
|
||||
"FUNCTION: oPath.New() {{{3
|
||||
"
|
||||
"The Constructor for the Path object
|
||||
|
|
Loading…
Reference in New Issue
Block a user