1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 12:00:23 +01:00

Fix sorting bug

This commit is contained in:
Jan Larres
2011-01-20 17:11:27 +13:00
parent ebf1d4b2e1
commit e7d50d3800

View File

@@ -382,13 +382,11 @@ function! s:ProcessFile(fname, ftype)
" take extra arguments
let s:compare_typeinfo = typeinfo
for tag in fileinfo.tags
if g:tagbar_sort
call s:SortTags(fileinfo.tags, 's:CompareByKind')
else
call s:SortTags(fileinfo.tags, 's:CompareByLine')
endif
endfor
if g:tagbar_sort
call s:SortTags(fileinfo.tags, 's:CompareByKind')
else
call s:SortTags(fileinfo.tags, 's:CompareByLine')
endif
let s:known_files[a:fname] = fileinfo
endfunction