summaryrefslogtreecommitdiff
path: root/Src/Zle/compcore.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-03-07 12:50:56 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-03-07 12:50:56 +0000
commite17fc5079394ce0c30dc0573676983e6f4a0a5bc (patch)
tree06981ab59bbc3b81d9d18cc8dd1daf8a7301ddad /Src/Zle/compcore.c
parent1c06bba93159db354447d6edc31e76e5b1ae736c (diff)
downloadzsh-e17fc5079394ce0c30dc0573676983e6f4a0a5bc.tar.gz
zsh-e17fc5079394ce0c30dc0573676983e6f4a0a5bc.zip
22328, modified: add -o option to compadd
add _list_files helper to handle new file-list style for _path_files
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r--Src/Zle/compcore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index 1caad5484..008f49185 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -2735,7 +2735,7 @@ addexpl(int always)
static int
matchcmp(Cmatch *a, Cmatch *b)
{
- if ((*a)->disp) {
+ if ((*a)->disp && !((*a)->flags & CMF_MORDER)) {
if ((*b)->disp) {
if ((*a)->flags & CMF_DISPLINE) {
if ((*b)->flags & CMF_DISPLINE)
@@ -2751,7 +2751,7 @@ matchcmp(Cmatch *a, Cmatch *b)
}
return -1;
}
- if ((*b)->disp)
+ if ((*b)->disp && !((*b)->flags & CMF_MORDER))
return 1;
return strbpcmp(&((*a)->str), &((*b)->str));