From f2cb7b112ca64a8bde8e14ca78145295d4f86fb8 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 11 May 2010 13:38:48 +0900 Subject: [PATCH] fixed problem about 'selection' option. --- zencoding.vim | 7 +++++-- zencoding.vim.vimup | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/zencoding.vim b/zencoding.vim index a739034..2d505b9 100644 --- a/zencoding.vim +++ b/zencoding.vim @@ -1,8 +1,8 @@ "============================================================================= " File: zencoding.vim " Author: Yasuhiro Matsumoto -" Last Change: 10-May-2010. -" Version: 0.38 +" Last Change: 11-May-2010. +" Version: 0.39 " WebPage: http://github.com/mattn/zencoding-vim " Description: vim plugins for HTML and CSS hi-speed coding. " SeeAlso: http://code.google.com/p/zen-coding/ @@ -1456,7 +1456,10 @@ function! s:zen_expandAbbr(mode) range endif silent! exe "normal! ".len(part)."h" if search('\$cursor\$', 'e') + let oldselection = &selection + let &selection = 'inclusive' silent! exe "normal! v7h\"_s" + let &selection = oldselection endif endfunction diff --git a/zencoding.vim.vimup b/zencoding.vim.vimup index 4a9239a..186816c 100644 --- a/zencoding.vim.vimup +++ b/zencoding.vim.vimup @@ -2,7 +2,7 @@ script_name: ZenCoding.vim script_id: '2981' script_type: utility script_package: zencoding.vim -script_version: '0.38' +script_version: '0.39' required_vim_version: '7.0' summary: vim plugins for HTML and CSS hi-speed coding. @@ -95,6 +95,8 @@ install_details: | copy zencoding.vim to your plugin directory. versions: +- '0.39': | + This is an upgrade for ZenCoding.vim: fixed problem about 'selection'. see http://github.com/mattn/zencoding-vim/issues/#issue/2 - '0.38': | This is an upgrade for ZenCoding.vim: use v7h"_s instead of v7hs for backspace. - '0.37': |