Forgot to remove from recent when adding to top of list
This commit is contained in:
@@ -274,6 +274,10 @@ def main(args=sys.argv):
|
|||||||
loop.loop(handler)
|
loop.loop(handler)
|
||||||
if handler.current_char and loop.return_code == 0:
|
if handler.current_char and loop.return_code == 0:
|
||||||
print('OK:', hex(ord(handler.current_char))[2:])
|
print('OK:', hex(ord(handler.current_char))[2:])
|
||||||
|
try:
|
||||||
|
handler.recent.remove(ord(handler.current_char))
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
recent = [ord(handler.current_char)] + handler.recent
|
recent = [ord(handler.current_char)] + handler.recent
|
||||||
cached_values['recent'] = recent[:len(DEFAULT_SET)]
|
cached_values['recent'] = recent[:len(DEFAULT_SET)]
|
||||||
raise SystemExit(loop.return_code)
|
raise SystemExit(loop.return_code)
|
||||||
|
|||||||
Reference in New Issue
Block a user