Permalink
Browse files

Fix crash from deleting keys while iterating over dict in hud_panel()

See issue #912 for details.
  • Loading branch information...
y0ssar1an committed Feb 9, 2019
1 parent 66dc145 commit 25a9e5dbca627141af0af5b606e9379fc22b3e12
Showing with 1 addition and 1 deletion.
  1. +1 −1 gosubl/margo.py
@@ -237,7 +237,7 @@ def hud_panel(self, win):

if len(m) > 1:
wids = [w.id() for w in sublime.windows()]
for id in m.keys():
for id in list(m.keys()):
if id not in wids:
del m[id]

0 comments on commit 25a9e5d

Please sign in to comment.