diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-06-15 16:06:48 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-06-15 16:06:48 +0200 |
commit | 75d7f5da9368f6ce6947aa5a1728f94eb149d4d5 (patch) | |
tree | 126e02d5cfb0bc6304ec00b6373fb530584e5957 | |
parent | e7b74c19a8954ebb6bb3315fe2a403f490f0b5bf (diff) | |
download | poezio-75d7f5da9368f6ce6947aa5a1728f94eb149d4d5.tar.gz poezio-75d7f5da9368f6ce6947aa5a1728f94eb149d4d5.tar.bz2 poezio-75d7f5da9368f6ce6947aa5a1728f94eb149d4d5.tar.xz poezio-75d7f5da9368f6ce6947aa5a1728f94eb149d4d5.zip |
plugins/reorder: Don't serialize gaptabs as they're recreated automatically
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | plugins/reorder.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/reorder.py b/plugins/reorder.py index 4a5f515e..38975a02 100644 --- a/plugins/reorder.py +++ b/plugins/reorder.py @@ -117,9 +117,8 @@ def parse_runtime_tablist(tablist): for tab in tablist[1:]: i += 1 result = check_tab(tab) - if result == 'empty': - props.append((i, 'empty')) - elif result: + # Don't serialize gap tabs as they're recreated automatically + if result != 'empty': props.append((i, '%s:%s' % (result, tab.jid.full))) return props |