Skip to content

Commit

Permalink
Getting wrong line on curline variable fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
romerixo committed Oct 28, 2018
1 parent 3db896b commit b91493d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indent/html.vim
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ func! s:CSSIndent()
" When the line starts with '*' or the previous line starts with "/*"
" and does not end in "*/", use C indenting to format the comment.
" Adopted $VIMRUNTIME/indent/css.vim
let curtext = getline(v:lnum)
let curtext = getline(v:lnum - 1)
if curtext =~ '^\s*[*]'
\ || (v:lnum > 1 && getline(v:lnum - 1) =~ '\s*/\*'
\ && getline(v:lnum - 1) !~ '\*/\s*$')
Expand Down

0 comments on commit b91493d

Please sign in to comment.