From fe6957eddb7fc781420b8dd1fcc016c352ddd5f8 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 1 Apr 2015 10:47:28 +1300 Subject: [PATCH] console: fix a crash that sometimes occurs when setting a limit --- libmproxy/console/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py index a963924ee..a3a8aa426 100644 --- a/libmproxy/console/__init__.py +++ b/libmproxy/console/__init__.py @@ -73,6 +73,8 @@ class ConsoleState(flow.State): elif idx < 0: idx = 0 self.focus = idx + else: + self.focus = None def set_focus_flow(self, f): self.set_focus(self.view.index(f))