Skip to content

Commit 2e6d42f

Browse files
authored
Merge branch 'master' into recompute-checkboxes
2 parents 8f420b5 + c52f957 commit 2e6d42f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ let g:bullets_checkbox_partials_toggle = 0
319319
* Promote a bullet (unindent it and increase the bullet level):
320320
+ NORMAL mode: `<<`
321321
+ INSERT mode: `<C-d>`
322-
+ VISUAL mode: `>`
322+
+ VISUAL mode: `<`
323323

324324
Disable default mappings:
325325

plugin/bullets.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fun! s:parse_bullet_text(line_text)
161161
if s:bullet_cache isnot v:null
162162
let l:cached = get(s:bullet_cache, a:line_text, v:null)
163163
if l:cached isnot v:null
164-
" Return a copy so as not to break the referene
164+
" Return a copy so as not to break the reference
165165
return copy(l:cached)
166166
endif
167167
endif
@@ -177,11 +177,11 @@ fun! s:parse_bullet_text(line_text)
177177
let l:roman = empty(l:bullet) && empty(l:num) ? s:match_roman_list_item(a:line_text) : {}
178178

179179
let l:kinds = s:filter([l:bullet, l:check, l:num, l:alpha, l:roman], '!empty(v:val)')
180-
180+
181181
if s:bullet_cache isnot v:null
182182
let s:bullet_cache[a:line_text] = l:kinds
183183
endif
184-
184+
185185
return l:kinds
186186
endfun
187187

@@ -1051,7 +1051,7 @@ fun! s:change_line_bullet_level(direction, lnum)
10511051
if a:direction == 1
10521052
if l:curr_line != [] && indent(a:lnum) == 0
10531053
" Promoting a bullet at the highest level will delete the bullet
1054-
call setline(a:lnum, l:curr_line[0].text_after_bullet)
1054+
call setline(a:lnum, l:curr_line[-1].text_after_bullet)
10551055
return
10561056
else
10571057
execute a:lnum . 'normal! <<'

0 commit comments

Comments
 (0)