Skip to content

Commit

Permalink
Use str2float instead of plain floats. Fixes preservim#10
Browse files Browse the repository at this point in the history
This is used to work around a vim bug throwing E806: using Float as String in
some Situations.
  • Loading branch information
Simon Kohlmeyer committed Feb 21, 2011
1 parent 3cd1b09 commit f972f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/indent_guides.vim
Expand Up @@ -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
Expand Down

0 comments on commit f972f02

Please sign in to comment.