mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Catch some stray command.call invocations
This commit is contained in:
parent
38ff8109fb
commit
2f3ba1f66d
@ -79,11 +79,11 @@ class FlowListBox(urwid.ListBox, layoutwidget.LayoutWidget):
|
|||||||
|
|
||||||
def keypress(self, size, key):
|
def keypress(self, size, key):
|
||||||
if key == "m_start":
|
if key == "m_start":
|
||||||
self.master.commands.call("view.go 0")
|
self.master.commands.execute("view.go 0")
|
||||||
elif key == "m_end":
|
elif key == "m_end":
|
||||||
self.master.commands.call("view.go -1")
|
self.master.commands.execute("view.go -1")
|
||||||
elif key == "m_select":
|
elif key == "m_select":
|
||||||
self.master.commands.call("console.view.flow @focus")
|
self.master.commands.execute("console.view.flow @focus")
|
||||||
return urwid.ListBox.keypress(self, size, key)
|
return urwid.ListBox.keypress(self, size, key)
|
||||||
|
|
||||||
def view_changed(self):
|
def view_changed(self):
|
||||||
|
@ -98,7 +98,7 @@ class FlowDetails(tabs.Tabs):
|
|||||||
msg, body = "", [urwid.Text([("error", "[content missing]")])]
|
msg, body = "", [urwid.Text([("error", "[content missing]")])]
|
||||||
return msg, body
|
return msg, body
|
||||||
else:
|
else:
|
||||||
full = self.master.commands.call("view.getval @focus fullcontents false")
|
full = self.master.commands.execute("view.getval @focus fullcontents false")
|
||||||
if full == "true":
|
if full == "true":
|
||||||
limit = sys.maxsize
|
limit = sys.maxsize
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user