When sorting tags, always match case because Vim expects it

This commit is contained in:
EinfachToll 2016-05-23 22:02:03 +02:00
parent 4831384ab9
commit 3f66117894

View File

@ -234,9 +234,9 @@ function! s:tags_entry_cmp(i1, i2) "{{{
let item.lineno = 0 + matchstr(fields[2], '\m\d\+')
call add(items, item)
endfor
if items[0].text > items[1].text
if items[0].text ># items[1].text
return 1
elseif items[0].text < items[1].text
elseif items[0].text <# items[1].text
return -1
elseif items[0].lineno > items[1].lineno
return 1