Use str2float instead of plain floats. Fixes #10

This is used to work around a vim bug throwing E806: using Float as String in
some Situations.
This commit is contained in:
Simon Kohlmeyer
2011-02-21 10:34:24 +01:00
parent 3cd1b09fb3
commit f972f0264f

View File

@@ -179,7 +179,7 @@ function! indent_guides#init_script_vars()
let s:debug = g:indent_guides_debug
let s:indent_levels = g:indent_guides_indent_levels
let s:auto_colors = g:indent_guides_auto_colors
let s:change_percent = g:indent_guides_color_change_percent / 100.0
let s:change_percent = g:indent_guides_color_change_percent / str2float("100.0")
let s:color_hex_pat = g:indent_guides_color_hex_pattern
let s:color_hex_bg_pat = g:indent_guides_color_hex_guibg_pattern
let s:color_name_bg_pat = g:indent_guides_color_name_guibg_pattern