From 8a46108ef6eafe4da3ca9adf4b0caf0b46d97497 Mon Sep 17 00:00:00 2001 From: Maxim Kim Date: Sat, 17 Aug 2013 20:10:00 +0400 Subject: [PATCH] Issue #13: VimwikiRenameLink don't update links with dot. --- autoload/vimwiki/base.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index c0c27b4..a0d49fd 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -776,8 +776,8 @@ endfunction "}}} " s:update_wiki_links function! s:update_wiki_links(old_fname, new_fname) " {{{ - let old_fname = s:tail_name(a:old_fname) - let new_fname = s:tail_name(a:new_fname) + let old_fname = a:old_fname + let new_fname = a:new_fname let subdirs = split(a:old_fname, '[/\\]')[: -2] @@ -1098,7 +1098,7 @@ function! vimwiki#base#rename_link() "{{{ setlocal nomore " update links - call s:update_wiki_links(old_fname, new_link) + call s:update_wiki_links(s:tail_name(old_fname), new_link) " restore wiki buffers for bitem in blist