Show More
@@ -2689,7 +2689,14 b' def find(cmd):' | |||||
2689 | break |
|
2689 | break | |
2690 |
|
2690 | |||
2691 | if len(choice) > 1: |
|
2691 | if len(choice) > 1: | |
2692 |
clist = [ |
|
2692 | clist = [] | |
|
2693 | for aliases, table_e in choice: | |||
|
2694 | if aliases[0].startswith(cmd): | |||
|
2695 | clist.append(aliases[0]) | |||
|
2696 | for a in aliases[1:]: | |||
|
2697 | if a.startswith(cmd) and not aliases[0].startswith(a): | |||
|
2698 | clist.append(a) | |||
|
2699 | clist.sort() | |||
2693 | raise AmbiguousCommand(cmd, clist) |
|
2700 | raise AmbiguousCommand(cmd, clist) | |
2694 |
|
2701 | |||
2695 | if choice: |
|
2702 | if choice: |
General Comments 0
You need to be logged in to leave comments.
Login now