Commit e7b74c19 authored by Maxime Buquet's avatar Maxime Buquet
Browse files

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