Skip to content

Commit 1a01ef2

Browse files
committed
Getting wrong line on 'curtext' variable fixed
1 parent 3db896b commit 1a01ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/html.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ func! s:CSSIndent()
606606
" When the line starts with '*' or the previous line starts with "/*"
607607
" and does not end in "*/", use C indenting to format the comment.
608608
" Adopted $VIMRUNTIME/indent/css.vim
609-
let curtext = getline(v:lnum)
609+
let curtext = getline(v:lnum - 1)
610610
if curtext =~ '^\s*[*]'
611611
\ || (v:lnum > 1 && getline(v:lnum - 1) =~ '\s*/\*'
612612
\ && getline(v:lnum - 1) !~ '\*/\s*$')

0 commit comments

Comments
 (0)