Skip to content

Commit 3fe75ab

Browse files
committed
Fixes the weird cursor movements after item mooving (#13)
1 parent e83766c commit 3fe75ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/vim-todo-lists.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,11 @@ function! VimTodoListsToggleItem()
379379
call VimTodoListsMoveSubtreeUp(l:lineno)
380380
endif
381381

382+
call VimTodoListsUpdateParent(l:lineno)
383+
382384
" Restore the current position
383385
" Using the {curswant} value to set the proper column
384386
call cursor(l:cursor_pos[1], l:cursor_pos[4])
385-
386-
call VimTodoListsUpdateParent(l:lineno)
387387
endfunction
388388

389389

0 commit comments

Comments
 (0)