commit 4a487474c493a9fb6207804347d3bf0712e21931
parent 626e80f6e47b0a74d86ccbc14c4247b1dbd60a7a
Author: Jason Franklin <lifecrisis@users.noreply.github.com>
Date: Thu, 22 Jun 2017 17:15:51 -0400
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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