Commit 6b039e2
fix(complete): keep a partial command expanding to its full name
Registering the requested alias made it a suggestion of its own, so
`webpack b<TAB>` offered `build` and `b` and the shell, having two
candidates, left the word at their common prefix instead of writing
`build` out. The last word is the one being typed, so only the words
before it name the command an alias has to resolve.
Co-authored-by: AmirSa12 <amirhosseinpr184@gmail.com>1 parent df97606 commit 6b039e2
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2643 | 2643 | | |
2644 | 2644 | | |
2645 | 2645 | | |
2646 | | - | |
2647 | | - | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
2648 | 2650 | | |
2649 | 2651 | | |
2650 | 2652 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
73 | 90 | | |
74 | 91 | | |
75 | 92 | | |
| |||
0 commit comments