Refactored the way global variables are initialized and added a new plugin option: g:indent_guides_indent_guide_size

This commit is contained in:
Nate Kane
2011-01-04 23:49:25 +10:00
parent d639a48f04
commit 538554b19f
2 changed files with 25 additions and 27 deletions

View File

@@ -39,7 +39,7 @@ endfunction
function! color_helper#hex_color_to_rgb(hex_color)
let l:rgb = []
if a:hex_color =~ g:indent_guides_hex_color_pattern
if a:hex_color =~ g:indent_guides_color_hex_pattern
let l:red = color_helper#hex_to_dec(strpart(a:hex_color, 1, 2))
let l:green = color_helper#hex_to_dec(strpart(a:hex_color, 3, 2))
let l:blue = color_helper#hex_to_dec(strpart(a:hex_color, 5, 2))