mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
commander: sort options for completion
This commit is contained in:
parent
a8ae006f2e
commit
1d2cdcff07
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user