fixed problem that can't work on the part of multibyte characters.

This commit is contained in:
mattn
2010-03-03 10:16:49 +09:00
parent 3fa5f954b5
commit 10529b0fd2
2 changed files with 7 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
"=============================================================================
" File: zencoding.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
" Last Change: 02-Mar-2010.
" Version: 0.26
" Last Change: 03-Mar-2010.
" Version: 0.27
" 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/
@@ -1110,13 +1110,13 @@ function! s:zen_expand(mode) range
endif
silent! exe "normal! gvc"
else
let line = getline('.')[:col('.')-1]
let line = getline('.')[:col('.')]
if a:mode == 1 || type != 'html'
let part = matchstr(line, '\([0-9A-Za-z_\@:]\+\)$')
else
let part = matchstr(line, '\(\S.*\)$')
endif
let rest = getline('.')[col('.'):]
let rest = getline('.')[col('.')+1:]
let items = s:zen_parseIntoTree(part, type).child
for item in items
let expand .= s:zen_toString(item, type)

View File

@@ -2,7 +2,7 @@ script_name: ZenCoding.vim
script_id: '2981'
script_type: utility
script_package: zencoding.vim
script_version: '0.26'
script_version: '0.27'
required_vim_version: '7.0'
summary: vim plugins for HTML and CSS hi-speed coding.
@@ -79,6 +79,8 @@ install_details: |
copy zencoding.vim to your plugin directory.
versions:
- '0.27': |
This is an upgrade for ZenCoding.vim: fixed problem that can't work on the part of multibyte characters.
- '0.26': |
This is an upgrade for ZenCoding.vim: The count of '(((a#foo + a#bar)*2)*3)' should be 12.
- '0.25': |