mirror of
https://github.com/gryf/tagbar.git
synced 2026-10-06 13:40:36 +02:00
Simplify sort method
This commit is contained in:
1 parent
f36e0d3d39
commit
5732ce9bd6
1 file changed
+1
-7
+1
-7
@@ -1579,13 +1579,7 @@ endfunction
|
||||
|
||||
" s:FileInfo.sortTags() {{{3
|
||||
function! s:FileInfo.sortTags() abort dict
|
||||
if has_key(s:compare_typeinfo, 'sort')
|
||||
if s:compare_typeinfo.sort
|
||||
call s:SortTags(self.tags, 's:CompareByKind')
|
||||
else
|
||||
call s:SortTags(self.tags, 's:CompareByLine')
|
||||
endif
|
||||
elseif g:tagbar_sort
|
||||
if get(s:compare_typeinfo, 'sort', g:tagbar_sort)
|
||||
call s:SortTags(self.tags, 's:CompareByKind')
|
||||
else
|
||||
call s:SortTags(self.tags, 's:CompareByLine')
|
||||
|
||||
Reference in new issue
Block a user