mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
fixed 'toggle comment'
This commit is contained in:
1
docs
1
docs
Submodule docs deleted from e28425ce02
@@ -1633,6 +1633,10 @@ function! s:zen_toggleComment()
|
||||
let pos2 = searchpos('</' . tag_name . '>', 'cneW')
|
||||
endif
|
||||
let block = [pos1, pos2]
|
||||
if !s:region_is_valid(block)
|
||||
call setpos('.', curpos)
|
||||
let block = s:search_region('<!', '-->')
|
||||
endif
|
||||
if s:point_in_region(curpos[1:2], block)
|
||||
let comment_region = s:search_region('<!--', '-->')
|
||||
if !s:region_is_valid(comment_region) || !s:point_in_region(curpos[1:2], comment_region)
|
||||
|
||||
Reference in New Issue
Block a user