Fix deteting tab indents, closes #596

This commit is contained in:
Adam Stankiewicz
2020-10-21 14:23:28 +02:00
parent 78f6c8f318
commit 4b8687ebca

View File

@@ -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)