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

Correct bug



hzoli ~ % te;net turan 
zsh: correct 'te' to 'tr' [nyae]? e
zsh: correct 'net' to 'hnet' [nyae]? e
hzoli ~ % te;net turan

The problem is that after I typed e to edit the mistyped command the
command line did not return, it wanted to correct more.

The fix is below.

Zoltan


*** Src/utils.c	1997/05/18 09:09:03	3.1.2.13
--- Src/utils.c	1997/05/20 05:16:24
***************
*** 1131,1137 ****
      int ne;
      int preflen = 0;
  
!     if (**s == '-' || **s == '%')
  	return;
      if (!strcmp(*s, "in"))
  	return;
--- 1131,1137 ----
      int ne;
      int preflen = 0;
  
!     if ((histdone & HISTFLAG_NOEXEC) || **s == '-' || **s == '%')
  	return;
      if (!strcmp(*s, "in"))
  	return;



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