Skip to content

Commit

Permalink
feat: add support for fullwidth colon ":"
Browse files Browse the repository at this point in the history
  • Loading branch information
alohaia committed Mar 23, 2024
1 parent 0cc28d5 commit 3edddeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/bullets.vim
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,8 @@ command! InsertNewBullet call <SID>insert_new_bullet()
" Helper for Colon Indent
" returns 1 if current line ends in a colon, else 0
fun! s:line_ends_in_colon(lnum)
return getline(a:lnum)[strlen(getline(a:lnum))-1:] ==# ':'
let l:last_char_nr = strgetchar(getline(a:lnum), strcharlen(getline(a:lnum))-1)
return l:last_char_nr == 65306 || l:last_char_nr == 58
endfun
" --------------------------------------------------------- }}}

Expand Down

0 comments on commit 3edddeb

Please sign in to comment.