File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -182,12 +182,18 @@ function! indent_guides#init_script_vars()
182
182
let s: debug = g: indent_guides_debug
183
183
let s: indent_levels = g: indent_guides_indent_levels
184
184
let s: auto_colors = g: indent_guides_auto_colors
185
- let s: change_percent = g: indent_guides_color_change_percent / str2float (" 100.0" )
186
185
let s: color_hex_pat = g: indent_guides_color_hex_pattern
187
186
let s: color_hex_bg_pat = g: indent_guides_color_hex_guibg_pattern
188
187
let s: color_name_bg_pat = g: indent_guides_color_name_guibg_pattern
189
188
let s: start_level = g: indent_guides_start_level
190
189
190
+ " str2float not available in vim versions <= 7.1
191
+ if has (' float' )
192
+ let s: change_percent = g: indent_guides_color_change_percent / str2float (' 100.0' )
193
+ else
194
+ let s: change_percent = g: indent_guides_color_change_percent / 100.0
195
+ endif
196
+
191
197
if s: debug
192
198
echo ' s:indent_size = ' . s: indent_size
193
199
echo ' s:guide_size = ' . s: guide_size
You can’t perform that action at this time.
0 commit comments