1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-13 11:21:13 +02:00

22448: typo retrieving $RBUFFER in completion

This commit is contained in:
Peter Stephenson 2006-05-19 10:16:01 +00:00
parent b58e90d277
commit 00446ee29c
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-05-19 Peter Stephenson <pws@csr.com>
* 22448: Src/Zle/zle_params.c: fix typo in get_rbuffer() that
could cause crash examining $RBUFFER in completion code.
2006-05-18 Clint Adams <clint@zsh.org>
* 22446: Completion/Debian/Command/_bts: acknowledge that

View file

@ -300,7 +300,8 @@ static char *
get_rbuffer(UNUSED(Param pm))
{
if (zlemetaline != NULL)
return dupstrpfx((char *)zleline + zlemetacs, zlemetall - zlemetacs);
return dupstrpfx((char *)zlemetaline + zlemetacs,
zlemetall - zlemetacs);
return zlelineasstring(zleline + zlecs, zlell - zlecs, 0, NULL, NULL, 1);
}