fixed problem about 'selection' option.

This commit is contained in:
mattn
2010-05-11 13:38:48 +09:00
parent 93104ffff5
commit f2cb7b112c
2 changed files with 8 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
"=============================================================================
" File: zencoding.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
" 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

View File

@@ -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': |