From ac4d669afb4208526ac9d8dde74fad75a588209f Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 29 May 2001 21:41:53 +0000 Subject: [PATCH] 145??: fix thinko --- ChangeLog | 2 ++ Src/Zle/zle_hist.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d2f5a9814..cb0ffdbcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2001-05-29 Clint Adams + * 145??: Src/Zle/zle_hist.c: fix thinko + * 145??: Src/Zle/zle_hist.c: repeat last vi history search if search string is empty. diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index 53481bd80..9719e5418 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -996,7 +996,7 @@ getvisrchstr(void) visrchstr = metafy(sbuf + 1, sptr - 1, META_DUP); if (!strlen(visrchstr)) { zsfree(visrchstr); - visrchstr = vipenultsrchstr; + visrchstr = ztrdup(vipenultsrchstr); } ret = 1; sptr = 0;