Set indentation only locally, fixes #564

This commit is contained in:
Adam Stankiewicz
2020-09-27 12:05:29 +02:00
parent 33b86476b6
commit 7ec499c19f
7 changed files with 36 additions and 15 deletions

View File

@@ -2132,7 +2132,7 @@ if !has_key(s:disabled_packages, 'autoindent')
if line[0] == "\t"
setlocal noexpandtab
let &shiftwidth=&tabstop
let &l:shiftwidth=&tabstop
let b:sleuth_culprit .= ':' . i
return 1
elseif line[0] == " "
@@ -2145,7 +2145,7 @@ if !has_key(s:disabled_packages, 'autoindent')
if minindent < 10
setlocal expandtab
let &shiftwidth=minindent
let &l:shiftwidth=minindent
let b:sleuth_culprit .= ':' . i
return 1
endif