fixed behavior of '*' in wrapping with abbreviation. closes #1

This commit is contained in:
mattn
2010-03-08 16:00:46 +09:00
parent 0f9662bc1b
commit 0aa0356d30

View File

@@ -1152,7 +1152,7 @@ function! s:zen_expandAbbr(mode) range
let leader = substitute(leader, mx, '', '')
endif
if leader =~ '\*'
let query = substitute(leader, '*', '{$line$}*' . (a:lastline - a:firstline + 1), '')
let query = substitute(leader, '*', '*' . (a:lastline - a:firstline + 1), '') . '{$line$}'
let items = s:zen_parseIntoTree(query, type).child
for item in items
let expand .= s:zen_toString(item, type, 0, filter)