mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-02 08:21:09 +01:00
* 20736: Src/Zle/zle_utils.c: change zlegetline() to return a metafied string.
This commit is contained in:
parent
92a3a28769
commit
8ae8a91b8b
2 changed files with 5 additions and 7 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2005-01-22 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 20736: Src/Zle/zle_utils.c: change zlegetline() to return
|
||||
a metafied string.
|
||||
|
||||
* unposted (cf. zsh-users/8412): Config/version.mk: fix
|
||||
year typo.
|
||||
|
||||
|
|
|
|||
|
|
@ -72,14 +72,11 @@ sizeline(int sz)
|
|||
|
||||
/*
|
||||
* 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 @@ zlegetline(int *ll, int *cs)
|
|||
}
|
||||
|
||||
*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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue