* PATCH: "^" at end of key string
@ 2006-10-10 9:32 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2006-10-10 9:32 UTC (permalink / raw)
To: Zsh hackers list
Trivial patch... I tried to pass '\e^' to bindkey, not thinking of
quoting "^" since it was at the end. The shell had other ideas and
bound "\e" instead. I don't see any possible incompatibility by
treating "^" literally in this one case. Obviously '\e\^' still works.
Index: Src/utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
retrieving revision 1.141
diff -u -r1.141 utils.c
--- Src/utils.c 5 Oct 2006 21:53:27 -0000 1.141
+++ Src/utils.c 10 Oct 2006 09:28:02 -0000
@@ -4744,7 +4744,7 @@
} else if ((how & GETKEY_DOLLAR_QUOTE) && *s == Snull) {
for (u = t; (*u++ = *s++););
return t + 1;
- } else if (*s == '^' && !control && (how & GETKEY_CTRL)) {
+ } else if (*s == '^' && !control && (how & GETKEY_CTRL) && s[1]) {
control = 1;
continue;
#ifdef MULTIBYTE_SUPPORT
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-10 9:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10 9:32 PATCH: "^" at end of key string Peter Stephenson
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).