mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-17 12:41:14 +02:00
22448: typo retrieving $RBUFFER in completion
This commit is contained in:
parent
b58e90d277
commit
00446ee29c
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2006-05-18 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* 22446: Completion/Debian/Command/_bts: acknowledge that
|
* 22446: Completion/Debian/Command/_bts: acknowledge that
|
||||||
|
|
|
@ -300,7 +300,8 @@ static char *
|
||||||
get_rbuffer(UNUSED(Param pm))
|
get_rbuffer(UNUSED(Param pm))
|
||||||
{
|
{
|
||||||
if (zlemetaline != NULL)
|
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);
|
return zlelineasstring(zleline + zlecs, zlell - zlecs, 0, NULL, NULL, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue