From 13f4b677c94c7f32b363ebe4ca2619e97cde1366 Mon Sep 17 00:00:00 2001 From: mattn Date: Sun, 6 May 2012 00:53:05 +0900 Subject: [PATCH] keep whitespace on selection 'v'. related #69 --- autoload/zencoding.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autoload/zencoding.vim b/autoload/zencoding.vim index c3dcbb2..611e4ce 100644 --- a/autoload/zencoding.vim +++ b/autoload/zencoding.vim @@ -1,7 +1,7 @@ "============================================================================= " zencoding.vim " Author: Yasuhiro Matsumoto -" Last Change: 02-May-2012. +" Last Change: 06-May-2012. let s:save_cpo = &cpo set cpo&vim @@ -745,7 +745,6 @@ function! zencoding#expandAbbr(mode) range silent! normal! gvygv let str = @" call setreg('"', save_regcont, save_regtype) - "let str .= getline(a:firstline) let items = s:zen_parseIntoTree(leader . "{".str."}", type).child endif for item in items @@ -802,7 +801,6 @@ function! zencoding#expandAbbr(mode) range if a:firstline == a:lastline let expand = substitute(expand, '\n\s*', '', 'g') else - let expand = substitute(expand, '\n\s*', '\n', 'g') let expand = substitute(expand, '\n$', '', 'g') endif let expand = substitute(expand, '\${cursor}', '$cursor$', '')