From 8118f59eaed56afc2a156412d1069a3f3ec97afe Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 5 Mar 2010 20:06:03 +0900 Subject: [PATCH] fixed comment block. --- zencoding.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zencoding.vim b/zencoding.vim index 342e05c..596e8bf 100644 --- a/zencoding.vim +++ b/zencoding.vim @@ -1293,7 +1293,7 @@ function! s:zen_toggleComment() else let content = s:get_content(comment_region) let g:hoge = content - let content = substitute(content, '^$', '\1', '') + let content = substitute(content, '^$', '\1', '') call s:change_content(comment_region, content) endif call setpos('.', pos) @@ -1416,7 +1416,7 @@ function! s:change_content(region, content) call setpos('.', [0, a:region[0][0], a:region[0][1], 0]) silent! exe "delete ".(a:region[1][0] - a:region[0][0]) if len(newlines) == 1 - call setline(line('.'), oldlines[0][:a:region[0][1]-2] . newlines[0] . oldlines[-1][a:region[1][1]]) + call setline(line('.'), oldlines[0][:a:region[0][1]-2] . newlines[0] . oldlines[-1][a:region[1][1]:]) else let newlines[0] = oldlines[0][a:region[0][1]-2] . newlines[0] let newlines[-1] .= oldlines[-1][a:region[1][1]]