summaryrefslogtreecommitdiffstats
path: root/indent
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-08-23 17:26:30 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-08-23 17:26:30 +0200
commitbc3b36088e468a50d0cc515544b8138e622c27b3 (patch)
treeb2823c472e2a2d5e7d049591881efb29df164d86 /indent
parent5d0150e326cf29936c832eb3b7ca846299f597b6 (diff)
downloadvim-polyglot-bc3b36088e468a50d0cc515544b8138e622c27b3.tar.gz
vim-polyglot-bc3b36088e468a50d0cc515544b8138e622c27b3.zip
Update
Diffstat (limited to 'indent')
-rw-r--r--indent/html.vim5
1 files changed, 2 insertions, 3 deletions
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