Skip to content

Commit e8fb09e

Browse files
author
Harshad Srinivasan
committed
Changed name
1 parent 7ef48cb commit e8fb09e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

plugin/bullets.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ fun! s:set_checkbox(lnum, marker)
559559
let l:initpos = getpos('.')
560560
let l:pos = s:find_checkbox_position(a:lnum)
561561
" select inside checkbox
562-
call s:replace_char(a:lnum, l:pos, a:marker)
562+
call s:replace_char_in_line(a:lnum, l:pos, a:marker)
563563
call setpos('.', l:initpos)
564564
endfun
565565

@@ -1242,11 +1242,11 @@ fun! s:sibling_checkbox_status(lnum)
12421242
return l:checkbox_markers[l:completion]
12431243
endfun
12441244

1245-
fun! s:replace_char(lnum, col, item)
1246-
call s:replace(a:lnum, a:col - 1, a:col + 1, a:item)
1245+
fun! s:replace_char_in_line(lnum, col, item)
1246+
call s:replace_in_line(a:lnum, a:col - 1, a:col + 1, a:item)
12471247
endfun
12481248

1249-
fun! s:replace(lnum, col_start, col_end, item)
1249+
fun! s:replace_in_line(lnum, col_start, col_end, item)
12501250
let l:curline = getline(a:lnum)
12511251
let l:newline = l:curline[0: a:col_start] . a:item . l:curline[a:col_end: -1]
12521252
call setline(a:lnum, l:newline)

0 commit comments

Comments
 (0)