Commit e7b74c19 authored by Maxime Buquet's avatar Maxime Buquet

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

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <>
parent f9e2d24e
...@@ -92,7 +92,11 @@ def parse_config(tab_config): ...@@ -92,7 +92,11 @@ def parse_config(tab_config):
if pos in result or pos <= 0: if pos in result or pos <= 0:
return None 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: if typ not in TEXT_TO_TAB:
return None return None
result[pos] = (TEXT_TO_TAB[typ], name) result[pos] = (TEXT_TO_TAB[typ], name)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment