Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Autoremoveslash bug?
- X-seq: zsh-workers 4406
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Autoremoveslash bug?
- Date: 05 Oct 1998 14:27:15 +0900
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.
Following fix works for me.
Is this correct?
------------------------------------------------------------
--- zle_tricky.c.org	Mon Oct  5 06:12:39 1998
+++ zle_tricky.c	Mon Oct  5 08:16:01 1998
@@ -3269,7 +3269,10 @@
 	if(ae && !atend)
 	    inststrlen(firstm + strlen(firstm) - ae, 0, ae);
 	if(ab || (ae && !atend))
+	{
+	    makesuffix(menuinsc = 0);
 	    inv = 1;
+	}
 	/* If the LIST_AMBIGUOUS option (meaning roughly `show a list only *
 	 * if the completion is completely ambiguous') is set, and some    *
 	 * prefix was inserted, return now, bypassing the list-displaying  *
------------------------------------------------------------
-- 
[Tanaka Akira]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author