Fix target problem.
This commit is contained in:
parent
4d3bc928e0
commit
869ba9875c
@ -372,6 +372,10 @@ function! s:expand_placeholder(start, end, holder_cnt, line, ...) "{{{
|
|||||||
\ '<{'.cnt.':'.escape(default, '\').'}>', ''))
|
\ '<{'.cnt.':'.escape(default, '\').'}>', ''))
|
||||||
let pos[2] += len('<{'.cnt.':')
|
let pos[2] += len('<{'.cnt.':')
|
||||||
else
|
else
|
||||||
|
if is_target
|
||||||
|
let default = ''
|
||||||
|
endif
|
||||||
|
|
||||||
" Substitute holder.
|
" Substitute holder.
|
||||||
call setline(a:line,
|
call setline(a:line,
|
||||||
\ substitute(current_line, pattern, escape(default, '\'), ''))
|
\ substitute(current_line, pattern, escape(default, '\'), ''))
|
||||||
|
Loading…
Reference in New Issue
Block a user