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:
parent
f9e2d24ee8
commit
e7b74c19a8
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue