mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +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:
|
for o in options:
|
||||||
if o.startswith(start):
|
if o.startswith(start):
|
||||||
self.options.append(o)
|
self.options.append(o)
|
||||||
|
self.options.sort()
|
||||||
self.offset = 0
|
self.offset = 0
|
||||||
|
|
||||||
def cycle(self) -> str:
|
def cycle(self) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user