Current Behavior
when CARAPACE_MATCH is set to 1, trying to complete with pkill --signal a yields no result
Expected Behavior
when CARAPACE_MATCH is set to 1, trying to complete with pkill --signal a yields:
ABRT -- Abnormal termination
ALRM -- Virtual alarm clock
Steps To Reproduce
- set
CARAPACE_MATCH to 1
- type
pkill --signal a
- press tab to trigger completion
Version
1.0.7
OS
Shell
Anything else?
Not the root cause of this since the example uses prefix for completion, but there seems be to another bug in the relevant code file:
. We are not returning the result from
strings.EqualFold when
CASE_INSENSITIVE is enabled.
Current Behavior
when
CARAPACE_MATCHis set to1, trying to complete withpkill --signal ayields no resultExpected Behavior
when
CARAPACE_MATCHis set to1, trying to complete withpkill --signal ayields:Steps To Reproduce
CARAPACE_MATCHto1pkill --signal aVersion
1.0.7
OS
Shell
Anything else?
Not the root cause of this since the example uses prefix for completion, but there seems be to another bug in the relevant code file:
carapace/pkg/match/match.go
Line 18 in 49b6747
strings.EqualFoldwhenCASE_INSENSITIVEis enabled.