Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re:  Autoremoveslash bug?
- X-seq: zsh-workers 4412
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re:  Autoremoveslash bug?
- Date: Mon, 5 Oct 1998 13:07:39 +0200 (MET DST)
- In-reply-to: Tanaka Akira's message of 05 Oct 1998 14:27:15 +0900
Tanaka Akira wrote:
> 
> Hi. I'm using zsh-3.1.4 on Solaris-2.6.
> 
> I found a small bug with automenu.
> 
> % zsh -f
> crane% cd /tmp
> crane% mkdir tst
> crane% touch tst/abc
> crane% touch tst/abcdef
> crane% echo tst
> 
> press <TAB>
> 
> crane% echo tst/
> 
> press <TAB>
> 
> crane% echo tst/abc
> 
> press <Return>
> 
> crane% echo tst/ab 
> tst/ab
> crane% 
> 
> So, zsh deletes a last character.
> 
As you have shown in your second version, using `fixsuffix()' is
better. I would prefer to place the call farther above in the call
chain, e.g.:
*** Src/Zle/zle_tricky.c.old	Mon Oct  5 13:01:40 1998
--- Src/Zle/zle_tricky.c	Mon Oct  5 13:01:51 1998
***************
*** 3258,3263 ****
--- 3258,3264 ----
      int inv = 0;
  
      menucmp = 0;
+     fixsuffix();
  
      /* If we have to insert the first match, call do_single().  This is *
       * how REC_EXACT takes effect.  We effectively turn the ambiguous   *
Bye
 Sven
--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author