summaryrefslogtreecommitdiff
path: root/Src/Zle/zle_params.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/zle_params.c')
-rw-r--r--Src/Zle/zle_params.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Src/Zle/zle_params.c b/Src/Zle/zle_params.c
index f9ac4f284..f089a5f47 100644
--- a/Src/Zle/zle_params.c
+++ b/Src/Zle/zle_params.c
@@ -187,7 +187,7 @@ set_buffer(UNUSED(Param pm), char *x)
static char *
get_buffer(UNUSED(Param pm))
{
- return (char *)zlelineasstring((char *)zleline, zlell, 0, NULL, NULL, 1);
+ return (char *)zlelineasstring(zleline, zlell, 0, NULL, NULL, 1);
}
/**/
@@ -264,7 +264,7 @@ get_lbuffer(UNUSED(Param pm))
static void
set_rbuffer(UNUSED(Param pm), char *x)
{
- char *y;
+ ZLE_STRING_T y;
int len;
if (x && *x != ZWC('\0'))
@@ -610,7 +610,8 @@ static char *
get_lsearch(UNUSED(Param pm))
{
if (previous_search_len)
- return metafy(previous_search, previous_search_len, META_HEAPDUP);
+ return zlelineasstring(previous_search, previous_search_len, 0,
+ NULL, NULL, 1);
else
return "";
}