commit f882cf01528e471d78d10df28ce407bc1cc23bc9
parent f55ec31675e372e2f59d51322b445ea91191ec2b
Author: Fredrik Arnerup <fredrik.arnerup@rte.se>
Date: Mon, 17 Sep 2018 11:21:07 +0200
Don't include trailing period in link
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/autoload/vimwiki/vars.vim b/autoload/vimwiki/vars.vim
@@ -125,8 +125,8 @@ function! s:populate_global_variables()
" this regexp defines what can form a link when the user presses <CR> in the
" buffer (and not on a link) to create a link
" basically, it's Ascii alphanumeric characters plus #|./@-_~ plus all
- " non-Ascii characters
- let g:vimwiki_global_vars.rxWord = '[^[:blank:]!"$%&''()*+,:;<=>?\[\]\\^`{}]\+'
+ " non-Ascii characters, except that . is not accepted as the last character
+ let g:vimwiki_global_vars.rxWord = '[^[:blank:]!"$%&''()*+,:;<=>?\[\]\\^`{}]*[^[:blank:]!"$%&''()*+.,:;<=>?\[\]\\^`{}]'
let g:vimwiki_global_vars.rx_wikilink_prefix1 = g:vimwiki_global_vars.rx_wikilink_prefix .
\ g:vimwiki_global_vars.rxWikiLinkUrl . g:vimwiki_global_vars.rx_wikilink_separator