mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-10-16 11:01:26 +08:00
fixed balance tag.
This commit is contained in:
1 parent
4e26621542
commit
99460233b4
1 file changed
+2
-2
+2
-2
@@ -1395,9 +1395,9 @@ function! s:zen_balanceTag(flag)
|
||||
if pos1[1] + len(content) > len(l)
|
||||
let pos1[0] += 1
|
||||
else
|
||||
let pos1[1] += len(content) + 1
|
||||
let pos1[1] += len(content)
|
||||
endif
|
||||
let pos2 = searchpos('\n\{0,1}</' . tag_name . '>', 'cnW')
|
||||
let pos2 = searchpos('\(\n\|.\)</' . tag_name . '>', 'cnW')
|
||||
else
|
||||
let pos2 = searchpos('</' . tag_name . '>', 'cneW')
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user