mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user