Skip to content

Commit 7ab92f7

Browse files
wilywampanathanaelkane
authored andcommitted
Set size of indent guide to tabstop value when noexpandtab is used
1 parent a397b3b commit 7ab92f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/indent_guides.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ endfunction
180180
" plugin is enabled.
181181
"
182182
function! indent_guides#init_script_vars()
183-
if &l:shiftwidth > 0
183+
if &l:shiftwidth > 0 && &l:expandtab
184184
let s:indent_size = &l:shiftwidth
185185
else
186186
let s:indent_size = &l:tabstop

0 commit comments

Comments
 (0)