summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-27 12:05:29 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-27 12:05:29 +0200
commit7ec499c19f91122724d1518887ba3ffe4a8fcb43 (patch)
tree090623fa904e05eabcffafd987cc3055b9080423 /ftdetect/polyglot.vim
parent33b86476b63f7fc2286336eb488a149a85cb08cb (diff)
downloadvim-polyglot-4.12.1.tar.gz
vim-polyglot-4.12.1.zip
Set indentation only locally, fixes #564v4.12.1
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 9c517e03..4b01a241 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -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