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

Re: zle-overwrite with 4.1.0-dev-0



Helmut Jarausch wrote:

> Hi,
> 
> (I believe that) on my Linux system switching to 4.1.0-dev-0 (cvs one
> week ago) I get overwrite mode (for zle) per default and switching back
> to insert mode doesn't last for long.
> Is there a new option?

No.  Hm, I've got no idea where the problem might be, I've never seen
something like that myself.

> Furthermore (I've just noticed it on my IRIX box at my office)
> I cannot use   ^X* anymore to expand things like  ~-
> This is with 4.0.1-pre-5 but I don't remember when it slipped in.
> Any ideas?

Oops.  That was caused by your humble code-messer-upper. Ahem.

We have to copy that string for normal expansion, too, otherwise the
test on line 790 will succeed and the command line will be restored.


Apologies for posting a patch to -users.  This will go into the
development branch and 4.0.2.


Bye
  Sven

Index: Src/Zle/zle_tricky.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v
retrieving revision 1.29
diff -u -r1.29 zle_tricky.c
--- Src/Zle/zle_tricky.c	2001/06/24 03:42:09	1.29
+++ Src/Zle/zle_tricky.c	2001/06/25 09:25:36
@@ -752,7 +752,8 @@
 	    inststr(x);
 	} else if (COMP_ISEXPAND(lst)) {
 	    /* Do expansion. */
-	    char *ol = (olst == COMP_EXPAND_COMPLETE) ?
+	    char *ol = (olst == COMP_EXPAND ||
+                        olst == COMP_EXPAND_COMPLETE) ?
 		dupstring((char *)line) : (char *)line;
 	    int ocs = cs, ne = noerrs;
 

-- 
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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