diff options
Diffstat (limited to 'vim/autoload/gitcommit.vim')
-rw-r--r-- | vim/autoload/gitcommit.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vim/autoload/gitcommit.vim b/vim/autoload/gitcommit.vim index 170cc2d0..7aba1c5b 100644 --- a/vim/autoload/gitcommit.vim +++ b/vim/autoload/gitcommit.vim @@ -3,14 +3,14 @@ function! gitcommit#CursorColumn() abort " If we can find a line after the first that isn't a comment, we're " composing the message - for l:num in range(1, line('$')) - if l:num == 1 + for num in range(1, line('$')) + if num == 1 continue endif - let l:line = getline(l:num) - if strpart(l:line, 0, 1) !=# '#' + let line = getline(num) + if strpart(line, 0, 1) !=# '#' return '+1' - elseif l:line =~# '^# -\{24} >8 -\{24}$' + elseif line =~# '^# -\{24} >8 -\{24}$' break endif endfor |