mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
Merge pull request #2780 from ujjwal96/console-fix
Fix crash when searching
This commit is contained in:
commit
a07d52daae
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue