diff options
author | Maximilian Hils <git@maximilianhils.com> | 2018-01-11 13:26:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-11 13:26:23 +0100 |
commit | a07d52daae96e13856f7c2feb51435ed0e64aed5 (patch) | |
tree | 2885dbef8e386113e7d4ecd86c3c1b122131efa1 | |
parent | daecd50c5a04f329da622812dc561cfa99decd91 (diff) | |
parent | cb5f3a54a6dab862f0c0c8572bd1cbdce67a7e15 (diff) | |
download | mitmproxy-a07d52daae96e13856f7c2feb51435ed0e64aed5.tar.gz mitmproxy-a07d52daae96e13856f7c2feb51435ed0e64aed5.tar.bz2 mitmproxy-a07d52daae96e13856f7c2feb51435ed0e64aed5.zip |
Merge pull request #2780 from ujjwal96/console-fix
Fix crash when searching
-rw-r--r-- | mitmproxy/tools/console/commander/commander.py | 2 | ||||
-rw-r--r-- | mitmproxy/tools/console/statusbar.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/tools/console/commander/commander.py b/mitmproxy/tools/console/commander/commander.py index 30e8b13b..e2088e71 100644 --- a/mitmproxy/tools/console/commander/commander.py +++ b/mitmproxy/tools/console/commander/commander.py @@ -178,5 +178,5 @@ class CommandEdit(urwid.WidgetWrap): x, y = calc_coords(self._w.get_text()[0], trans, p) return x, y - def get_value(self): + def get_edit_text(self): return self.cbuf.text diff --git a/mitmproxy/tools/console/statusbar.py b/mitmproxy/tools/console/statusbar.py index 572b70fc..09cfd58a 100644 --- a/mitmproxy/tools/console/statusbar.py +++ b/mitmproxy/tools/console/statusbar.py @@ -101,7 +101,7 @@ class ActionBar(urwid.WidgetWrap): elif k in self.onekey: self.prompt_execute(k) elif k == "enter": - self.prompt_execute(self._w.get_value()) + self.prompt_execute(self._w.get_edit_text()) else: if common.is_keypress(k): self._w.keypress(size, k) |