We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23576aa commit a540d3dCopy full SHA for a540d3d
1 file changed
plugin/bullets.vim
@@ -558,8 +558,10 @@ endfun
558
fun! s:set_checkbox(lnum, marker)
559
let l:initpos = getpos('.')
560
let l:pos = s:find_checkbox_position(a:lnum)
561
- call s:replace_char_in_line(a:lnum, l:pos, a:marker)
562
- call setpos('.', l:initpos)
+ if l:pos >= 0
+ call s:replace_char_in_line(a:lnum, l:pos, a:marker)
563
+ call setpos('.', l:initpos)
564
+ endif
565
endfun
566
567
fun! s:toggle_checkboxes_nested()
0 commit comments