mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 13:01:28 +02:00
35514: [[:foo:]] tests in completion should be more specific
This commit is contained in:
parent
7b46509e92
commit
77130df674
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
||||||
2015-06-24 Peter Stephenson <p.stephenson@samsung.com>
|
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
|
* 35590: Src/text.c, Test/B02typeset.ztst: tweak and
|
||||||
test text output for typeset.
|
test text output for typeset.
|
||||||
|
|
||||||
|
|
|
@ -1113,8 +1113,8 @@ range_type(char *start, int len)
|
||||||
const char **csp;
|
const char **csp;
|
||||||
|
|
||||||
for (csp = colon_stuffs; *csp; 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;
|
return (csp - colon_stuffs) + PP_FIRST;
|
||||||
}
|
}
|
||||||
|
|
||||||
return PP_UNKWN;
|
return PP_UNKWN;
|
||||||
|
|
Loading…
Reference in a new issue