Merge branch 'new-lists' of github.com:vimwiki/vimwiki into new-lists

This commit is contained in:
Maxim Kim
2013-09-08 14:53:42 +04:00
12 changed files with 1623 additions and 771 deletions

View File

@ -1424,8 +1424,7 @@ endfunction " }}}
" arguments rxUrl, rxDesc, and rxStyle are copied verbatim, without any
" special character escapes or substitutions.
function! vimwiki#base#apply_template(template, rxUrl, rxDesc, rxStyle) "{{{
let magic_chars = '.*[\^$'
let lnk = escape(a:template, magic_chars)
let lnk = vimwiki#u#escape(a:template)
if a:rxUrl != ""
let lnk = substitute(lnk, '__LinkUrl__', '\='."'".a:rxUrl."'", '')
endif