Skip to content

Commit cfeed13

Browse files
aserebryakovAlexanderS-Vayyar
authored andcommitted
Fixes the noise maked in default mode (#11)
1 parent 08ca9a3 commit cfeed13

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ Changelog
163163

164164
* Added items highlighting
165165

166+
#### 0.5.1
167+
168+
* Fixed the annoying noise when navigating over items in default mode
169+
166170
Credits
167171
-------
168172

doc/vim-todo-lists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ SOFTWARE.
196196

197197
* Added items highlighting
198198

199+
0.5.1
200+
201+
* Fixed the annoying noise when navigating over items in default mode
202+
199203
==============================================================================
200204
8. Credits *VimTodoListsCredits*
201205

plugin/vim-todo-lists.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ function! VimTodoListsGoToNextItem()
236236
normal! $
237237
silent! exec '/^\s*\[.\]'
238238
silent! exec 'noh'
239-
normal! f[
240239
normal! l
241240
endfunction
242241

@@ -246,7 +245,6 @@ function! VimTodoListsGoToPreviousItem()
246245
normal! 0
247246
silent! exec '?^\s*\[.\]'
248247
silent! exec 'noh'
249-
normal! f[
250248
normal! l
251249
endfunction
252250

@@ -261,6 +259,9 @@ function! VimTodoListsToggleItem()
261259
call VimTodoListsForEachChild(line('.'), 'VimTodoListsSetItemNotDone')
262260
endif
263261

262+
" Restore the cursor position
263+
normal! f[l
264+
264265
call VimTodoListsUpdateParent(line('.'))
265266
endfunction
266267

0 commit comments

Comments
 (0)