Set shiftwidth to tabstop if greather, fixes #648

Also should fix situations like in #654
This commit is contained in:
Adam Stankiewicz
2020-12-29 20:33:47 +01:00
parent 45f2f94975
commit c5625ffedd

View File

@@ -2678,6 +2678,10 @@ if !has_key(g:polyglot_is_disabled, 'autoindent')
let &tabstop = 2 let &tabstop = 2
endif endif
if &shiftwidth > &tabstop
let &shiftwidth = &tabstop
endif
let s:default_shiftwidth = &shiftwidth let s:default_shiftwidth = &shiftwidth
func! s:get_shiftwidth(indents) abort func! s:get_shiftwidth(indents) abort