Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: 3.1.6-test-1: expansion return status
- X-seq: zsh-workers 7123
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: 3.1.6-test-1: expansion return status
- Date: Wed, 14 Jul 1999 09:57:03 +0200 (MET DST)
- In-reply-to: Peter Stephenson's message of Tue, 13 Jul 1999 17:31:07 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Peter Stephenson wrote:
> What I haven't attempted to get right is that the list should also be
> cleared if there are no matches.
It should be as simple as this -- or am I missing something?
Bye
Sven
diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c Wed Jul 14 09:21:07 1999
+++ Src/Zle/zle_tricky.c Wed Jul 14 09:51:49 1999
@@ -1043,7 +1043,8 @@
}
}
ret = docompletion(s, lst, lincmd);
- }
+ } else if (ret)
+ clearlist = 1;
} else
/* Just do completion. */
ret = docompletion(s, lst, lincmd);
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author