console: fix a crash that sometimes occurs when setting a limit

This commit is contained in:
Aldo Cortesi 2015-04-01 10:47:28 +13:00
parent c794d362f9
commit fe6957eddb

View File

@ -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))