Merge pull request #44 from davedevelopment/patch-1

Allow backslashes in placeholder defaults
This commit is contained in:
Shougo 2012-10-16 16:04:33 -07:00
commit f160bf7f20
1 changed files with 1 additions and 1 deletions

View File

@ -769,7 +769,7 @@ function! s:expand_placeholder(start, end, holder_cnt, line)"{{{
\ s:get_placeholder_marker_default_pattern(),
\ '\\d\\+', a:holder_cnt, '')
let default = substitute(
\ matchstr(current_line, default_pattern), '\\\ze.', '', 'g')
\ matchstr(current_line, default_pattern), '\\\ze[^\\]', '', 'g')
" Substitute marker.
let default = substitute(default,
\ s:get_placeholder_marker_substitute_pattern(),