From bc3b36088e468a50d0cc515544b8138e622c27b3 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 23 Aug 2020 17:26:30 +0200 Subject: Update --- indent/html.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'indent') diff --git a/indent/html.vim b/indent/html.vim index 89869f4a..3b9c7eb4 100644 --- a/indent/html.vim +++ b/indent/html.vim @@ -843,12 +843,11 @@ func! HtmlIndent_FindTagStart(lnum) " - a flag indicating whether we found the end of a tag. " This method is global so that HTML-like indenters can use it. " To avoid matching " > " or " < " inside a string require that the opening - " "<" is followed by a word character and the closing ">" comes after a - " non-white character. + " "<" is followed by a word character let idx = match(getline(a:lnum), '\S>\s*$') if idx > 0 call cursor(a:lnum, idx) - let lnum = searchpair('<\w', '' , '\S>', 'bW', '', max([a:lnum - b:html_indent_line_limit, 0])) + let lnum = searchpair('<\w', '' , '>', 'bW', '', max([a:lnum - b:html_indent_line_limit, 0])) if lnum > 0 return [lnum, 1] endif -- cgit v1.2.3