mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 12:03:53 -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"
|
if line[0] == "\t"
|
||||||
let spaces_minus_tabs -= 1
|
let spaces_minus_tabs -= 1
|
||||||
else
|
else
|
||||||
|
if line[0] == " "
|
||||||
let spaces_minus_tabs += 1
|
let spaces_minus_tabs += 1
|
||||||
|
endif
|
||||||
let indent = len(matchstr(line, '^ *'))
|
let indent = len(matchstr(line, '^ *'))
|
||||||
while stack[-1] > indent
|
while stack[-1] > indent
|
||||||
call remove(stack, -1)
|
call remove(stack, -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user