mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-10 02:43:46 -05:00
Set size of indent guide to tabstop value when noexpandtab is used
This commit is contained in:
@@ -180,7 +180,7 @@ endfunction
|
||||
" plugin is enabled.
|
||||
"
|
||||
function! indent_guides#init_script_vars()
|
||||
if &l:shiftwidth > 0
|
||||
if &l:shiftwidth > 0 && &l:expandtab
|
||||
let s:indent_size = &l:shiftwidth
|
||||
else
|
||||
let s:indent_size = &l:tabstop
|
||||
|
||||
Reference in New Issue
Block a user