dirtywords

portable text interface framework  https://pypi.python.org/pypi/dirtywords
git clone https://git.ce9e.org/dirtywords.git

commit
d0c98e78e540dd1886c9caac89a756e88cc4720b
parent
92b39e486dc8742ba2641b4bec5afb4c1cafb1ff
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2018-08-03 15:19
fix iteration

Diffstat

M dirtywords/base.py 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/dirtywords/base.py b/dirtywords/base.py

@@ -174,7 +174,7 @@ class Screen(Core):
  174   174         now = time()
  175   175         threshold = now - 0.1
  176   176 
  177    -1         for ch, detail in self._pressed_keys.items():
   -1   177         for ch, detail in list(self._pressed_keys.items()):
  178   178             t, phase = detail
  179   179             if t < threshold:
  180   180                 del self._pressed_keys[ch]