diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-27 12:05:29 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-27 12:05:29 +0200 |
commit | 7ec499c19f91122724d1518887ba3ffe4a8fcb43 (patch) | |
tree | 090623fa904e05eabcffafd987cc3055b9080423 /polyglot.vim | |
parent | 33b86476b63f7fc2286336eb488a149a85cb08cb (diff) | |
download | vim-polyglot-4.12.1.tar.gz vim-polyglot-4.12.1.zip |
Set indentation only locally, fixes #564v4.12.1
Diffstat (limited to 'polyglot.vim')
-rw-r--r-- | polyglot.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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 |