aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-12-20 10:59:04 +1300
committerAldo Cortesi <aldo@corte.si>2017-12-20 10:59:04 +1300
commit4a9deb350df3d9f2f17533cfe10baad51b7b5426 (patch)
treeb5e57fff0497f4d481c17ac5d24a83c1a8a3b1f6
parent1e85345c00e4bd763f85ea2329d992ce6010c93c (diff)
downloadmitmproxy-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.py1
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):