zsh-users
 help / color / mirror / code / Atom feed
* zle-overwrite with 4.1.0-dev-0
@ 2001-06-25  8:07 jarausch
  2001-06-25  9:28 ` Sven Wischnowsky
  0 siblings, 1 reply; 2+ messages in thread
From: jarausch @ 2001-06-25  8:07 UTC (permalink / raw)
  To: zsh-users

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?

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?

Thanks for a hint,

Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: zle-overwrite with 4.1.0-dev-0
  2001-06-25  8:07 zle-overwrite with 4.1.0-dev-0 jarausch
@ 2001-06-25  9:28 ` Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2001-06-25  9:28 UTC (permalink / raw)
  To: zsh-users

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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-25  9:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-25  8:07 zle-overwrite with 4.1.0-dev-0 jarausch
2001-06-25  9:28 ` Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).