Fix incorrect setting of expandtab
This commit is contained in:
parent
dd0f3349a2
commit
4bae3d4618
@ -48,7 +48,7 @@ function! s:guess(lines) abort
|
|||||||
if heuristics.hard && !heuristics.spaces
|
if heuristics.hard && !heuristics.spaces
|
||||||
return {'expandtab': 0, 'shiftwidth': &tabstop}
|
return {'expandtab': 0, 'shiftwidth': &tabstop}
|
||||||
elseif heuristics.soft != heuristics.hard
|
elseif heuristics.soft != heuristics.hard
|
||||||
let options.expandtab = heuristics.soft > heuristics.spaces
|
let options.expandtab = heuristics.soft > heuristics.hard
|
||||||
if heuristics.hard
|
if heuristics.hard
|
||||||
let options.tabstop = 8
|
let options.tabstop = 8
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user