mirror of
https://github.com/zsh-users/zsh
synced 2024-10-14 11:53:24 +00:00
35514: [[:foo:]] tests in completion should be more specific
This commit is contained in:
parent
7b46509e92
commit
77130df674
|
@ -1,5 +1,9 @@
|
|||
2015-06-24 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 35514: Han Pingtian: Src/pattern.c: [[:foo:]]
|
||||
tests in completion weren't specific enough about
|
||||
foo.
|
||||
|
||||
* 35590: Src/text.c, Test/B02typeset.ztst: tweak and
|
||||
test text output for typeset.
|
||||
|
||||
|
|
|
@ -1113,7 +1113,7 @@ range_type(char *start, int len)
|
|||
const char **csp;
|
||||
|
||||
for (csp = colon_stuffs; *csp; csp++) {
|
||||
if (!strncmp(start, *csp, len))
|
||||
if (strlen(*csp) == len && !strncmp(start, *csp, len))
|
||||
return (csp - colon_stuffs) + PP_FIRST;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue