-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ri): avoid interference on existing COMPREPLY
The current implementation of `_comp_cmd_ri__methods` prefixes $prefix to the generated method names. However, this prefixing also affects the already generated completions in COMPREPLY because it first generates the method names by appending them to COMPRELY and then modifies all the elements of COMPREPLY. In the current usage, it did not produce the problem because prefix is empty when there are existing elements in COMPREPLY, but it's accidentally. Before refactoring the code, we want to resolve this dependency on the subtle condition.
- Loading branch information
1 parent
116e9fa
commit 0a9d931
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters