From ae75dd6e6278ea2b8bbb4cc0c4ef7075b7e41198 Mon Sep 17 00:00:00 2001 From: David Beniamine Date: Sun, 13 Dec 2020 12:13:36 +0100 Subject: [PATCH] Fix sort with symbol of more than 1 letter --- autoload/todo.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/todo.vim b/autoload/todo.vim index c16cc52..ff28af3 100644 --- a/autoload/todo.vim +++ b/autoload/todo.vim @@ -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