Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

And other completion fix



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);




Messages sorted by: Reverse Date, Date, Thread, Author