From 0cfc2d91c04eb710861237d174cfe639f9ecfa12 Mon Sep 17 00:00:00 2001 From: Mario Holubar <34423543+mario-holubar@users.noreply.github.com> Date: Sun, 28 Sep 2025 06:09:26 +0200 Subject: [PATCH 1/2] fix: remove checkbox on top-level promotion --- plugin/bullets.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/bullets.vim b/plugin/bullets.vim index 513d194..f6b3e9a 100644 --- a/plugin/bullets.vim +++ b/plugin/bullets.vim @@ -971,7 +971,7 @@ fun! s:change_line_bullet_level(direction, lnum) if a:direction == 1 if l:curr_line != [] && indent(a:lnum) == 0 " Promoting a bullet at the highest level will delete the bullet - call setline(a:lnum, l:curr_line[0].text_after_bullet) + call setline(a:lnum, l:curr_line[-1].text_after_bullet) return else execute a:lnum . 'normal! <<' From 4c36ccd30c305f3237d59ff8b75e9ac290db3238 Mon Sep 17 00:00:00 2001 From: Mario Holubar <34423543+mario-holubar@users.noreply.github.com> Date: Sun, 28 Sep 2025 06:15:49 +0200 Subject: [PATCH 2/2] fix typo --- plugin/bullets.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/bullets.vim b/plugin/bullets.vim index f6b3e9a..839f33e 100644 --- a/plugin/bullets.vim +++ b/plugin/bullets.vim @@ -161,7 +161,7 @@ fun! s:parse_bullet_text(line_text) if s:bullet_cache isnot v:null let l:cached = get(s:bullet_cache, a:line_text, v:null) if l:cached isnot v:null - " Return a copy so as not to break the referene + " Return a copy so as not to break the reference return copy(l:cached) endif endif @@ -177,11 +177,11 @@ fun! s:parse_bullet_text(line_text) let l:roman = empty(l:bullet) && empty(l:num) ? s:match_roman_list_item(a:line_text) : {} let l:kinds = s:filter([l:bullet, l:check, l:num, l:alpha, l:roman], '!empty(v:val)') - + if s:bullet_cache isnot v:null let s:bullet_cache[a:line_text] = l:kinds endif - + return l:kinds endfun