From 14df96943470046b788c9e2dfec37610a378f6a3 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 29 Oct 2016 11:08:35 +1300 Subject: addons.view.focus: Better handling of view refresh When we refresh and our current focus goes out of scope, we set the focus to the element nearest the old focus. --- test/mitmproxy/addons/test_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/mitmproxy/addons/test_view.py b/test/mitmproxy/addons/test_view.py index 1ab7e8f4..56372749 100644 --- a/test/mitmproxy/addons/test_view.py +++ b/test/mitmproxy/addons/test_view.py @@ -228,7 +228,7 @@ def test_focus(): filt = flowfilter.parse("~m get") v.set_filter(filt) - assert f.index == 0 + assert f.index == 2 filt = flowfilter.parse("~m oink") v.set_filter(filt) -- cgit v1.2.3