mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
make path.bookmarkNames private
This commit is contained in:
@@ -1050,10 +1050,10 @@ endfunction
|
|||||||
let s:Path = {}
|
let s:Path = {}
|
||||||
"FUNCTION: Path.bookmarkNames() {{{3
|
"FUNCTION: Path.bookmarkNames() {{{3
|
||||||
function! s:Path.bookmarkNames()
|
function! s:Path.bookmarkNames()
|
||||||
if !exists("self.bookmarkNames")
|
if !exists("self._bookmarkNames")
|
||||||
call self.cacheDisplayString()
|
call self.cacheDisplayString()
|
||||||
endif
|
endif
|
||||||
return self.bookmarkNames
|
return self._bookmarkNames
|
||||||
endfunction
|
endfunction
|
||||||
"FUNCTION: Path.cacheDisplayString() {{{3
|
"FUNCTION: Path.cacheDisplayString() {{{3
|
||||||
function! s:Path.cacheDisplayString()
|
function! s:Path.cacheDisplayString()
|
||||||
@@ -1063,14 +1063,14 @@ function! s:Path.cacheDisplayString()
|
|||||||
let self.cachedDisplayString = self.cachedDisplayString . '*'
|
let self.cachedDisplayString = self.cachedDisplayString . '*'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let self.bookmarkNames = []
|
let self._bookmarkNames = []
|
||||||
for i in s:Bookmark.Bookmarks()
|
for i in s:Bookmark.Bookmarks()
|
||||||
if i.path.equals(self)
|
if i.path.equals(self)
|
||||||
call add(self.bookmarkNames, i.name)
|
call add(self._bookmarkNames, i.name)
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
if !empty(self.bookmarkNames)
|
if !empty(self._bookmarkNames)
|
||||||
let self.cachedDisplayString .= ' {' . join(self.bookmarkNames) . '}'
|
let self.cachedDisplayString .= ' {' . join(self._bookmarkNames) . '}'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if self.isSymLink
|
if self.isSymLink
|
||||||
|
|||||||
Reference in New Issue
Block a user