From 7ec499c19f91122724d1518887ba3ffe4a8fcb43 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 27 Sep 2020 12:05:29 +0200 Subject: Set indentation only locally, fixes #564 --- polyglot.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'polyglot.vim') diff --git a/polyglot.vim b/polyglot.vim index b6198b80..e86e62ef 100644 --- a/polyglot.vim +++ b/polyglot.vim @@ -268,7 +268,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] == " " @@ -281,7 +281,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 -- cgit v1.2.3