From 0c550ae06cb067d1a1faaa5d33c6ec93de5b3c17 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 5 Sep 2018 22:16:37 -0400 Subject: [PATCH] fixed bug with buf_fetch --- lib/buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/buf.c b/lib/buf.c index df45b60..3c80c61 100644 --- a/lib/buf.c +++ b/lib/buf.c @@ -580,7 +580,7 @@ char* buf_fetch(Buf* buf, bool (*isword)(Rune), size_t off) { buf_selword(buf, isword); str = buf_gets(buf); } else { - str = strdup(""); + str = buf_gets(buf); } buf->selection = prev; return str; -- 2.49.0