Skip to content

Commit 3ffddb5

Browse files
committed
new checkboxes should respect the g:bullets_checkbox_markers 'unckecked'
character
1 parent db319f0 commit 3ffddb5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

plugin/bullets.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ fun! s:next_num_bullet(bullet)
421421
endfun
422422

423423
fun! s:next_chk_bullet(bullet)
424-
return '- [ ]'
424+
let l:checkbox_markers = split(g:bullets_checkbox_markers, '\zs')
425+
return '- [' . l:checkbox_markers[0] . ']'
425426
endfun
426427
" }}}
427428

spec/checkboxes_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
# Hello there
227227
- [✓] first bullet
228228
- [◐] second bullet
229-
\t- [ ] third bullet
229+
\t- [] third bullet
230230
\t- [✓] fourth bullet
231231
- [✓] fifth bullet
232232
- [✗] sixth bullet

0 commit comments

Comments
 (0)