vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit eed4ceff1af6ae11f33ee589f7bf099fdc62fdd5
parent bc6acf5103cc546fb17d47846da333028f442e0d
Author: Drew Hays <me@andrewhays.net>
Date:   Thu, 17 Aug 2017 23:53:40 -0700

Escape the 'dot' in extension substitution

This escapes the `.` preceding an extension (e.g. `.wiki`) so that it doesn't accidentally match any character.

For example: `[vimwiki](vimwiki)` was opening the `vi.wiki` page, because of this rule.
Diffstat:
Mautoload/vimwiki/base.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim @@ -1273,7 +1273,7 @@ function! vimwiki#base#follow_link(split, reuse, move_cursor, ...) "{{{ " remove the extension from the filename if exists, because non-vimwiki " markdown files usually include the extension in links - let lnk = substitute(lnk, VimwikiGet('ext').'$', '', '') + let lnk = substitute(lnk, '\'.VimwikiGet('ext').'$', '', '') endif let current_tab_page = tabpagenr()