aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <Kriechi@users.noreply.github.com>2017-06-06 00:33:58 +0200
committerGitHub <noreply@github.com>2017-06-06 00:33:58 +0200
commitd2d7502ef050b2f3329de2a42b31278fd2a01400 (patch)
treecd1a4333ed778380997d5165df0f5efbfcc2bc73
parent387235b5809bc1b86f748f5da56d03eb946d1c44 (diff)
parentdfa693ebd31ea12ac91fd02b72a382f98fb12f53 (diff)
downloadmitmproxy-d2d7502ef050b2f3329de2a42b31278fd2a01400.tar.gz
mitmproxy-d2d7502ef050b2f3329de2a42b31278fd2a01400.tar.bz2
mitmproxy-d2d7502ef050b2f3329de2a42b31278fd2a01400.zip
Merge pull request #2378 from ujjwal96/console-fixes
Fixes #2377 #2323
-rw-r--r--mitmproxy/tools/console/eventlog.py2
-rw-r--r--mitmproxy/tools/console/flowlist.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/tools/console/eventlog.py b/mitmproxy/tools/console/eventlog.py
index 0b8a3f8c..f5f48f88 100644
--- a/mitmproxy/tools/console/eventlog.py
+++ b/mitmproxy/tools/console/eventlog.py
@@ -23,7 +23,7 @@ class EventLog(urwid.ListBox):
def keypress(self, size, key):
if key == "z":
- self.master.clear_events()
+ self.clear_events()
key = None
elif key == "m_end":
self.set_focus(len(self.walker) - 1)
diff --git a/mitmproxy/tools/console/flowlist.py b/mitmproxy/tools/console/flowlist.py
index 4184eeb4..c28f991b 100644
--- a/mitmproxy/tools/console/flowlist.py
+++ b/mitmproxy/tools/console/flowlist.py
@@ -69,7 +69,7 @@ class FlowItem(urwid.WidgetWrap):
def mouse_event(self, size, event, button, col, row, focus):
if event == "mouse press" and button == 1:
if self.flow.request:
- self.master.view_flow(self.flow)
+ self.master.commands.call("console.view.flow @focus")
return True
def keypress(self, xxx_todo_changeme, key):