From 2a205569eb5a6b0cd69336bbdced1dc35cbbc7d2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 23 Oct 2020 00:51:16 +0200 Subject: Set only softtabstop, not tabstop, fixes #600 --- ftdetect/polyglot.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index bac11624..38c3d689 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -2766,9 +2766,7 @@ if !has_key(s:disabled_packages, 'autoindent') if shiftwidth > 0 setlocal expandtab let &l:shiftwidth=shiftwidth - if &tabstop == 8 - let &l:tabstop=shiftwidth - endif + let &l:softtabstop=shiftwidth return 1 endif -- cgit v1.2.3