Skip to content

Commit dd4231e

Browse files
committed
Fixes the error message when the item that is the last line in the buffer is toggled (#7)
1 parent f2aaf22 commit dd4231e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/vim-todo-lists.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function! VimTodoListsFindLastChild(lineno)
122122

123123
" If item is the last line in the buffer it has no children
124124
if a:lineno == line('$')
125-
return
125+
return l:last_child_lineno
126126
endif
127127

128128
for current_line in range (a:lineno + 1, line('$'))

0 commit comments

Comments
 (0)