Commits

Takeshi NISHIDA committed f6f3e9b

Fixed a bug that floating point numbers weren't evaluated correctly and caused errors on some non-English locales.

  • Participants
  • Parent commits 15431e6
  • Tags 1.0.1

Comments (0)

Files changed (2)

File autoload/l9.vim

   return (s:L9_VERSION_COMPATIBLE <= a:ver && a:ver <= s:L9_VERSION_CURRENT)
 endfunction
 
-let s:versionFactor = 0.01
+let s:VERSION_FACTOR = str2float('0.01')
 
 " returns false if the caller script should finish.
 " l9Version: same rule as v:version
   if exists(loadedVarName)
     return 0
   elseif v:version < a:vimVersion
-    echoerr a:path . ' requires Vim version ' . string(a:vimVersion * s:versionFactor)
+    echoerr a:path . ' requires Vim version ' . string(a:vimVersion * s:VERSION_FACTOR)
     return 0
   elseif !exists('*l9#isCompatible') || !l9#isCompatible(a:l9Version)
-    echoerr a:path . ' requires L9 library version ' . string(a:l9Version * s:versionFactor)
+    echoerr a:path . ' requires L9 library version ' . string(a:l9Version * s:VERSION_FACTOR)
     return 0
   endif
   let {loadedVarName} = 1
 ==============================================================================
 CHANGELOG                                                       *l9-changelog*
 
+1.0.1:
+  - Fixed a bug that floating point numbers weren't evaluated correctly and
+    caused errors on some non-English locales.
+
 1.0:
   - First release.