summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Beniamine <david@beniamine.net>2020-12-13 12:13:36 +0100
committerDavid Beniamine <david@beniamine.net>2020-12-13 12:13:36 +0100
commitae75dd6e6278ea2b8bbb4cc0c4ef7075b7e41198 (patch)
tree5aa07df0560c98c646e9ab216fa3d35b871550ec
parent37d46d4cf8e4abaa5a7f9d1b098003a5dd485ed8 (diff)
downloadtodo.txt-vim-ae75dd6e6278ea2b8bbb4cc0c4ef7075b7e41198.zip
Fix sort with symbol of more than 1 letter
-rw-r--r--autoload/todo.vim2
1 files changed, 1 insertions, 1 deletions
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