Fix target problem.

This commit is contained in:
Shougo Matsushita 2013-11-22 12:26:44 +09:00
parent 4d3bc928e0
commit 869ba9875c

View File

@ -372,6 +372,10 @@ function! s:expand_placeholder(start, end, holder_cnt, line, ...) "{{{
\ '<{'.cnt.':'.escape(default, '\').'}>', ''))
let pos[2] += len('<{'.cnt.':')
else
if is_target
let default = ''
endif
" Substitute holder.
call setline(a:line,
\ substitute(current_line, pattern, escape(default, '\'), ''))