plugins/reorder: Ignore gaptab when parsing as they're recreated automatically

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-06-15 16:04:37 +02:00
parent f9e2d24ee8
commit e7b74c19a8

View file

@ -92,7 +92,11 @@ def parse_config(tab_config):
if pos in result or pos <= 0:
return None
typ, name = tab_config.get(option, default=':').split(':', maxsplit=1)
spec = tab_config.get(option, default=':').split(':', maxsplit=1)
# Gap tabs are recreated automatically if there's a gap in indices.
if spec == 'empty':
return None
typ, name = spec
if typ not in TEXT_TO_TAB:
return None
result[pos] = (TEXT_TO_TAB[typ], name)