Set size of indent guide to tabstop
value when shiftwidth=0
is used
Fixes #57
This commit is contained in:
parent
eec1b629dc
commit
7aac8169ea
@ -180,7 +180,11 @@ endfunction
|
||||
" plugin is enabled.
|
||||
"
|
||||
function! indent_guides#init_script_vars()
|
||||
if &l:shiftwidth > 0
|
||||
let s:indent_size = &l:shiftwidth
|
||||
else
|
||||
let s:indent_size = &l:tabstop
|
||||
endif
|
||||
let s:guide_size = indent_guides#calculate_guide_size()
|
||||
let s:hi_normal = indent_guides#capture_highlight('Normal')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user