Fix sort with symbol of more than 1 letter

This commit is contained in:
David Beniamine
2020-12-13 12:13:36 +01:00
parent 37d46d4cf8
commit ae75dd6e62

View File

@@ -371,7 +371,7 @@ function! GetGroups(symbol,begin, end)
let l:curline=a:begin
let l:groups=[]
while l:curline <= a:end
let l:curproj=strpart(matchstr(getline(l:curline),a:symbol.'\S*'),1)
let l:curproj=strpart(matchstr(getline(l:curline),a:symbol.'\S*'),len(a:symbol))
if l:curproj != "" && index(l:groups,l:curproj) == -1
let l:groups=add(l:groups , l:curproj)
endif