mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Fix deteting tab indents, closes #596
This commit is contained in:
@@ -2730,7 +2730,9 @@ if !has_key(s:disabled_packages, 'autoindent')
|
||||
if line[0] == "\t"
|
||||
let spaces_minus_tabs -= 1
|
||||
else
|
||||
if line[0] == " "
|
||||
let spaces_minus_tabs += 1
|
||||
endif
|
||||
let indent = len(matchstr(line, '^ *'))
|
||||
while stack[-1] > indent
|
||||
call remove(stack, -1)
|
||||
|
||||
Reference in New Issue
Block a user