diff options
author | Pedro Worcel <pedro@worcel.com> | 2013-12-26 21:53:04 +1300 |
---|---|---|
committer | Pedro Worcel <pedro@worcel.com> | 2013-12-26 21:53:04 +1300 |
commit | a4b059c2a7ebe4e03abedd63f297d359509347d6 (patch) | |
tree | afea409d482c1e18f27fdfcfdd260bbd74933850 /libmproxy/console | |
parent | 34a09780ee1354cf70f36f635f9207fc4dc7db95 (diff) | |
download | mitmproxy-a4b059c2a7ebe4e03abedd63f297d359509347d6.tar.gz mitmproxy-a4b059c2a7ebe4e03abedd63f297d359509347d6.tar.bz2 mitmproxy-a4b059c2a7ebe4e03abedd63f297d359509347d6.zip |
fix bug that happens after searching for a non-existant string, and
later for an existant one.
Diffstat (limited to 'libmproxy/console')
-rw-r--r-- | libmproxy/console/flowview.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libmproxy/console/flowview.py b/libmproxy/console/flowview.py index 20ef864e..b0931fa2 100644 --- a/libmproxy/console/flowview.py +++ b/libmproxy/console/flowview.py @@ -327,7 +327,12 @@ class FlowView(common.WWrap): if search_string == last_search_string: start_line = self.state.get_flow_setting(self.flow, "last_find_line") start_index = self.state.get_flow_setting(self.flow, - "last_search_index") + len(search_string) + "last_search_index") + + if start_index != None: + start_index += len(search_string) + else: + start_index = 0 else: self.state.add_flow_setting(self.flow, "last_search_string", search_string) |