fixed endless loop

This commit is contained in:
mattn
2010-08-02 14:58:29 +09:00
parent 742e115a41
commit 7ac94b6e64

View File

@@ -1636,6 +1636,9 @@ function! s:zen_toggleComment()
if !s:region_is_valid(block)
call setpos('.', curpos)
let block = s:search_region('<!', '-->')
if !s:region_is_valid(block)
return
endif
endif
if s:point_in_region(curpos[1:2], block)
let comment_region = s:search_region('<!--', '-->')