From 1a01ef27ae50a79d29e91c8603a3a0b56c4ed18e Mon Sep 17 00:00:00 2001 From: Juan Antonio Date: Sun, 28 Oct 2018 22:43:00 +0100 Subject: [PATCH] Getting wrong line on 'curtext' variable fixed --- indent/html.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indent/html.vim b/indent/html.vim index 6877bbf..bfc8f99 100644 --- a/indent/html.vim +++ b/indent/html.vim @@ -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*$')