mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 03:04:27 +08:00
Fix toggleComment
This commit is contained in:
@@ -518,7 +518,7 @@ function! zencoding#lang#html#toggleComment()
|
|||||||
call setpos('.', [0, pos2[0], pos2[1], 0])
|
call setpos('.', [0, pos2[0], pos2[1], 0])
|
||||||
let pos2 = searchpairpos('<'. tag_name . '>', '', '</' . tag_name . '>', 'nW')
|
let pos2 = searchpairpos('<'. tag_name . '>', '', '</' . tag_name . '>', 'nW')
|
||||||
call setpos('.', [0, pos2[0], pos2[1], 0])
|
call setpos('.', [0, pos2[0], pos2[1], 0])
|
||||||
let pos2 = searchpos('>', 'cneW')
|
let pos2 = searchpos('>', 'neW')
|
||||||
let block = [pos1, pos2]
|
let block = [pos1, pos2]
|
||||||
endif
|
endif
|
||||||
if !zencoding#util#regionIsValid(block)
|
if !zencoding#util#regionIsValid(block)
|
||||||
|
|||||||
Reference in New Issue
Block a user