nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 5aec5ecfef767de0bd1de168509a5aae3cdf8c22
parent 519436ad2047b108573788cb71f77ebdcd3d56d6
Author: Jason Franklin <j_fra@fastmail.us>
Date:   Fri, 26 May 2017 08:48:38 -0400

Rename the class method for sorting bookmarks

A more intention-revealing name was chosen for the script-local sorting
function. The function comment was also rewritten.

Diffstat:
Mlib/nerdtree/bookmark.vim | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/nerdtree/bookmark.vim b/lib/nerdtree/bookmark.vim
@@ -20,7 +20,7 @@ function! s:Bookmark.AddBookmark(name, path)
     endfor
     call add(s:Bookmark.Bookmarks(), s:Bookmark.New(a:name, a:path))
     if g:NERDTreeBookmarksSort ==# 1
-        call s:Bookmark.Sort()
+        call s:Bookmark.SortBookmarksList()
     endif
 endfunction
 
@@ -105,7 +105,7 @@ function! s:Bookmark.CacheBookmarks(silent)
             endif
         endif
         if g:NERDTreeBookmarksSort ==# 1
-            call s:Bookmark.Sort()
+            call s:Bookmark.SortBookmarksList()
         endif
     endif
 endfunction
@@ -239,9 +239,9 @@ function! s:Bookmark.setPath(path)
     let self.path = a:path
 endfunction
 
-" FUNCTION: Bookmark.Sort() {{{1
-" Class method that sorts all bookmarks
-function! s:Bookmark.Sort()
+" FUNCTION: Bookmark.SortBookmarksList() {{{1
+" Class method that sorts the global list of bookmarks by name.
+function! s:Bookmark.SortBookmarksList()
     let CompareFunc = function("nerdtree#compareBookmarks")
     call sort(s:Bookmark.Bookmarks(), CompareFunc)
 endfunction