diff options
author | Aldo Cortesi <aldo@corte.si> | 2017-12-20 10:59:04 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2017-12-20 10:59:04 +1300 |
commit | 4a9deb350df3d9f2f17533cfe10baad51b7b5426 (patch) | |
tree | b5e57fff0497f4d481c17ac5d24a83c1a8a3b1f6 | |
parent | 1e85345c00e4bd763f85ea2329d992ce6010c93c (diff) | |
download | mitmproxy-4a9deb350df3d9f2f17533cfe10baad51b7b5426.tar.gz mitmproxy-4a9deb350df3d9f2f17533cfe10baad51b7b5426.tar.bz2 mitmproxy-4a9deb350df3d9f2f17533cfe10baad51b7b5426.zip |
console options: retain focus position after edit
Fixes #2622
-rw-r--r-- | mitmproxy/tools/console/options.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mitmproxy/tools/console/options.py b/mitmproxy/tools/console/options.py index 4d55aeec..54772cf0 100644 --- a/mitmproxy/tools/console/options.py +++ b/mitmproxy/tools/console/options.py @@ -117,6 +117,7 @@ class OptionListWalker(urwid.ListWalker): def stop_editing(self): self.editing = False self.focus_obj = self._get(self.index, False) + self.set_focus(self.index) self._modified() def get_edit_text(self): |