avoid crashing if trig list is empty
This commit is contained in:
parent
d62714492a
commit
af2f762e07
@ -225,7 +225,10 @@ def _unmap_select_mode_mapping():
|
|||||||
for m in maps:
|
for m in maps:
|
||||||
# The first three chars are the modes, that might be listed.
|
# The first three chars are the modes, that might be listed.
|
||||||
# We are not interested in them here.
|
# We are not interested in them here.
|
||||||
trig = m[3:].split()[0]
|
trig = m[3:].split()[0] if len(m[3:].split()) != 0 else None
|
||||||
|
|
||||||
|
if trig is None:
|
||||||
|
continue
|
||||||
|
|
||||||
# The bar separates commands
|
# The bar separates commands
|
||||||
if trig[-1] == "|":
|
if trig[-1] == "|":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user