mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
fix bug that happens after searching for a non-existant string, and
later for an existant one.
This commit is contained in:
parent
34a09780ee
commit
a4b059c2a7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user