diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-06-15 16:04:37 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-06-15 16:04:55 +0200 |
commit | e7b74c19a8954ebb6bb3315fe2a403f490f0b5bf (patch) | |
tree | 5be86d8cf63c580eea71ca786c8530603a394b81 | |
parent | f9e2d24ee883d811b58a4aa2e1bb8a7e68ea350d (diff) | |
download | poezio-e7b74c19a8954ebb6bb3315fe2a403f490f0b5bf.tar.gz poezio-e7b74c19a8954ebb6bb3315fe2a403f490f0b5bf.tar.bz2 poezio-e7b74c19a8954ebb6bb3315fe2a403f490f0b5bf.tar.xz poezio-e7b74c19a8954ebb6bb3315fe2a403f490f0b5bf.zip |
plugins/reorder: Ignore gaptab when parsing as they're recreated automatically
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | plugins/reorder.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/reorder.py b/plugins/reorder.py index 01de5c5d..4a5f515e 100644 --- a/plugins/reorder.py +++ b/plugins/reorder.py @@ -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) |