35514: [[:foo:]] tests in completion should be more specific

This commit is contained in:
Han Pingtian 2015-06-18 10:37:39 +08:00 committed by Peter Stephenson
parent 7b46509e92
commit 77130df674
2 changed files with 6 additions and 2 deletions

View file

@ -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.

View file

@ -1113,8 +1113,8 @@ range_type(char *start, int len)
const char **csp;
for (csp = colon_stuffs; *csp; csp++) {
if (!strncmp(start, *csp, len))
return (csp - colon_stuffs) + PP_FIRST;
if (strlen(*csp) == len && !strncmp(start, *csp, len))
return (csp - colon_stuffs) + PP_FIRST;
}
return PP_UNKWN;