From 4a487474c493a9fb6207804347d3bf0712e21931 Mon Sep 17 00:00:00 2001 From: Jason Franklin Date: Thu, 22 Jun 2017 17:15:51 -0400 Subject: [PATCH] Modify call to sort() for older versions of Vim (#714) Older Vim versions seem to require that calls to sort() specify a dictionary when the compare function argument is a dictionary function. This seems to be required even when the dictionary is not used. Since this change does not seem to affect behavior in later Vim editions, I see no harm in including it. --- lib/nerdtree/bookmark.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nerdtree/bookmark.vim b/lib/nerdtree/bookmark.vim index 268664b..f8606ee 100644 --- a/lib/nerdtree/bookmark.vim +++ b/lib/nerdtree/bookmark.vim @@ -274,7 +274,7 @@ endfunction " Class method that sorts the global list of bookmarks alphabetically by name. " Note that case-sensitivity is determined by a user option. function! s:Bookmark.SortBookmarksList() - call sort(s:Bookmark.Bookmarks(), s:Bookmark.CompareBookmarksByName) + call sort(s:Bookmark.Bookmarks(), s:Bookmark.CompareBookmarksByName, s:Bookmark) endfunction " FUNCTION: Bookmark.str() {{{1