mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-10 10:53:47 -05:00
Set size of indent guide to tabstop value when shiftwidth=0 is used
Fixes #57
This commit is contained in:
@@ -180,7 +180,11 @@ endfunction
|
|||||||
" plugin is enabled.
|
" plugin is enabled.
|
||||||
"
|
"
|
||||||
function! indent_guides#init_script_vars()
|
function! indent_guides#init_script_vars()
|
||||||
|
if &l:shiftwidth > 0
|
||||||
let s:indent_size = &l:shiftwidth
|
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:guide_size = indent_guides#calculate_guide_size()
|
||||||
let s:hi_normal = indent_guides#capture_highlight('Normal')
|
let s:hi_normal = indent_guides#capture_highlight('Normal')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user