From: Clint Adams <clint@zsh.org>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: PATCH: minor zle_utils fix
Date: Sat, 22 Jan 2005 11:22:59 -0500 [thread overview]
Message-ID: <20050122162259.GA12782@scowler.net> (raw)
In-Reply-To: <200501191049.j0JAn8US032409@news01.csr.com>
And these:
> We probably also need to metafy the line. The only call to zlegetline()
[...]
> Same here in the alternative branch: we need to duplicate the first
> zlell characters and metafy. This is the same as the
M Src/Zle/zle_utils.c
* modified files
--- orig/Src/Zle/zle_utils.c
+++ mod/Src/Zle/zle_utils.c
@@ -72,14 +72,11 @@
/*
* Insert a character, called from main shell.
- *
- * WCHAR: type is wrong, should be a genuine wide character,
- * when available in the caller.
*/
/**/
mod_export void
-zleaddtoline(int chr)
+zleaddtoline(ZLE_CHAR_T chr)
{
spaceinline(1);
zleline[zlecs++] = chr;
@@ -109,15 +106,13 @@
}
*ll = mb_len;
-
- return (unsigned char *)s;
#else
*ll = zlell;
*cs = zlecs;
s = ztrdup(zleline);
- return (unsigned char *)s;
#endif
+ return (unsigned char *) metafy((char *) s, zlell, META_REALLOC);
}
prev parent reply other threads:[~2005-01-22 16:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-16 16:22 Clint Adams
2005-01-17 10:40 ` Peter Stephenson
2005-01-19 1:26 ` Clint Adams
2005-01-19 10:49 ` Peter Stephenson
2005-01-22 3:35 ` Clint Adams
2005-01-22 16:22 ` Clint Adams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050122162259.GA12782@scowler.net \
--to=clint@zsh.org \
--cc=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).