From 1d2cdcff07bc9db090c22699432a0006589abe37 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 15 Dec 2017 16:26:33 +1300 Subject: [PATCH] commander: sort options for completion --- mitmproxy/tools/console/commander/commander.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mitmproxy/tools/console/commander/commander.py b/mitmproxy/tools/console/commander/commander.py index c79bc379f..bef43a7e4 100644 --- a/mitmproxy/tools/console/commander/commander.py +++ b/mitmproxy/tools/console/commander/commander.py @@ -27,6 +27,7 @@ class ListCompleter(Completer): for o in options: if o.startswith(start): self.options.append(o) + self.options.sort() self.offset = 0 def cycle(self) -> str: