From 1167951ad1c7f22c1e69e95275941eec2a5c808b Mon Sep 17 00:00:00 2001 From: Harshad Vedartham Date: Sun, 21 Apr 2024 09:39:23 -0700 Subject: [PATCH] Bad comment format --- plugin/bullets.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/bullets.vim b/plugin/bullets.vim index e90578b..6e1860b 100644 --- a/plugin/bullets.vim +++ b/plugin/bullets.vim @@ -586,11 +586,11 @@ command! InsertNewBullet call insert_new_bullet() " returns 1 if current line ends in a colon, else 0 fun! s:line_ends_in_colon(lnum) let l:line = getline(a:lnum) - # Older versions of vim do not support strchar* if exists("*strcharlen") && exists("*strcharget") let l:last_char_nr = strgetchar(l:line, strcharlen(l:line)-1) return l:last_char_nr == 65306 || l:last_char_nr == 58 else + " Older versions of vim do not support strchar* return l:line[strlen(l:line)-1:] ==# ':' endif endfun