-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[builtin/completion_osh] Support SparseArray COMP_ARGV with
compadjust
* SparseArray_GetValues is used to obtain comp_argv from the shell variable COMP_ARGV. This ignores all the unset elements and only picks up the set elements. Then the word index would be changed. This might not be desired. Maybe it is better to first convert it to BashArray and use the member strs? * Conversely, when there are unset elements in COMP_ARGV with BashArray, doesn't that cause problems in the later AdjustArg?
- Loading branch information
1 parent
ade67dc
commit df9b56c
Showing
2 changed files
with
25 additions
and
2 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
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