Skip to content

Commit 8c9eb84

Browse files
committed
Adds makes the items moving be optional feature (#13)
1 parent 3fe75ab commit 8c9eb84

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugin/vim-todo-lists.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ endfunction
152152

153153
" Moves the item subtree to the specified position
154154
function! VimTodoListsMoveSubtree(lineno, position)
155+
if exists('g:VimTodoListsMoveItems')
156+
if g:VimTodoListsMoveItems != 1
157+
return
158+
endif
159+
endif
160+
155161
let l:subtree_length = VimTodoListsFindLastChild(a:lineno) - a:lineno + 1
156162

157163
let l:cursor_pos = getcurpos()

0 commit comments

Comments
 (0)