Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: tricky.c and i-c-w
- X-seq: zsh-workers 7058
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: tricky.c and i-c-w
- Date: Fri, 9 Jul 1999 10:35:35 +0200 (MET DST)
- In-reply-to: Sven Wischnowsky's message of Thu, 8 Jul 1999 11:11:05 +0200 (MET DST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
I wrote:
> I fear that there are even more problems here: if we are in a
> menu-completion and someone changes the command line directly, calling
> the completion code again may have all kinds of nasty effects. At
> least I think so, haven't tried it yet, but I will look into it.
Yes, we have to break menu-completion when someone sets [LR]BUFFER,
otherwise the command-line positions stored get invalid.
Bye
Sven
diff -u oos/Zle/zle_params.c Src/Zle/zle_params.c
--- oos/Zle/zle_params.c Thu Jul 8 11:11:37 1999
+++ Src/Zle/zle_params.c Fri Jul 9 10:29:59 1999
@@ -137,6 +137,8 @@
cs = ll;
} else
cs = ll = 0;
+ fixsuffix();
+ menucmp = 0;
}
/**/
@@ -156,6 +158,8 @@
cs = ll;
else
cs = x;
+ fixsuffix();
+ menucmp = 0;
}
/**/
@@ -182,6 +186,8 @@
ll = ll - cs + len;
cs = len;
zsfree(x);
+ fixsuffix();
+ menucmp = 0;
}
/**/
@@ -205,6 +211,8 @@
sizeline(ll = cs + len);
memcpy(line + cs, y, len);
zsfree(x);
+ fixsuffix();
+ menucmp = 0;
}
/**/
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author