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

Re: Autoremoveslash bug?



In article <981005024107.ZM1609@xxxxxxxxxxxxxxxxxxxxxxx>,
  "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx> writes:

> } Is this correct?
> 
> Unfortunately, I don't know the completion code well enough to answer.

That is wrong ;-)

Previous patch does not fix the behaviour on pressing slash key
instead of return key.

So, I'm using following patch now.

------------------------------------------------------------
--- 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))
+	{
+	    fixsuffix();
 	    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