* And other completion fix
@ 1996-07-10 1:10 Zoltan Hidvegi
0 siblings, 0 replies; only message in thread
From: Zoltan Hidvegi @ 1996-07-10 1:10 UTC (permalink / raw)
To: Zsh hacking and development
When there is no file in the current directory which name begins with a
star, then after
% echo '*'<TAB>
the quotes are simply removed. After the patch below the result after
<TAB> is
% echo \*
It works in that particular case and I do hope that it does not break
anything else.
Zoltan
*** Src/zle_tricky.c 1996/07/10 01:01:58 2.60
--- Src/zle_tricky.c 1996/07/10 01:02:59
***************
*** 2971,2978 ****
validlist = 1;
if(nmatches && !errflag)
return 0;
- /* No matches: restore the command line. */
- strcpy((char *)line, (char *)ol);
if ((isf || cc->xor) && !parampre) {
/* We found no matches, but there is a xor'ed completion: *
--- 2971,2976 ----
***************
*** 2983,2988 ****
--- 2981,2987 ----
wb = owb;
we = owe;
cs = ocs;
+ strcpy((char *)line, (char *)ol);
offs = oloffs;
s = dupstring(os);
free(amatches);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-07-10 1:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-10 1:10 And other completion fix Zoltan Hidvegi
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).