diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-29 11:08:35 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-29 11:08:35 +1300 |
commit | 14df96943470046b788c9e2dfec37610a378f6a3 (patch) | |
tree | a35816de6d6a78c47098a5719702c2cd6aaec684 /test | |
parent | 90e7142b5c8dd3ec9896e5308ea2e81a2d77d31d (diff) | |
download | mitmproxy-14df96943470046b788c9e2dfec37610a378f6a3.tar.gz mitmproxy-14df96943470046b788c9e2dfec37610a378f6a3.tar.bz2 mitmproxy-14df96943470046b788c9e2dfec37610a378f6a3.zip |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_view.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |