vimwiki

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

commit a040c422647d8318ce5c1db5d6c50cd99e478eb7
parent e2a6b825de72b308c798620ca6e8c9244329f6a6
Author: Daniel Moura <daniel.moura@loft.com.br>
Date:   Thu, 22 Oct 2020 11:01:49 -0300

fix: not throwing error when loading for some languages

Some languages uses comma instead of dot for decimal separator.
When loading vimwiki the following error was occuring
E806: using Float as a String
This is probably a bug in vim, as a workaround when using float can be
str2float.
Similar issue in another project
https://github.com/nathanaelkane/vim-indent-guides/issues/10

Diffstat:
Mdoc/vimwiki.txt | 3+++
Mplugin/vimwiki.vim | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt @@ -3830,6 +3830,7 @@ Contributors and their Github usernames in roughly chronological order: - Jerome Gay (@jeromg) - Benney Au (@chinwobble) - David Sierra DiazGranados (@davidsierradz) + - Daniel Moura (@dmouraneto) ============================================================================== 16. Changelog *vimwiki-changelog* @@ -3878,6 +3879,8 @@ Changed:~ Removed:~ Fixed:~ + * Issue #1029: Fix: error loading plugin when lang uses comma instead of + dot as decimal separator * Issue #886: :VimwikiGenerateLinks not working on Windows * Issue #55: Newlines in blockquotes are not honored * Issue #55: BlockQuote restarts list numbering diff --git a/plugin/vimwiki.vim b/plugin/vimwiki.vim @@ -11,7 +11,7 @@ endif let g:loaded_vimwiki = 1 " Set to version number for release, otherwise -1 for dev-branch -let s:plugin_vers = -1 +let s:plugin_vers = str2float("-1") " Get the directory the script is installed in let s:plugin_dir = expand('<sfile>:p:h:h')