Skip to content

Commit f972f02

Browse files
author
Simon Kohlmeyer
committed
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.
1 parent 3cd1b09 commit f972f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/indent_guides.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function! indent_guides#init_script_vars()
179179
let s:debug = g:indent_guides_debug
180180
let s:indent_levels = g:indent_guides_indent_levels
181181
let s:auto_colors = g:indent_guides_auto_colors
182-
let s:change_percent = g:indent_guides_color_change_percent / 100.0
182+
let s:change_percent = g:indent_guides_color_change_percent / str2float("100.0")
183183
let s:color_hex_pat = g:indent_guides_color_hex_pattern
184184
let s:color_hex_bg_pat = g:indent_guides_color_hex_guibg_pattern
185185
let s:color_name_bg_pat = g:indent_guides_color_name_guibg_pattern

0 commit comments

Comments
 (0)