From: Michael D. Lowis Date: Thu, 6 Sep 2018 02:16:37 +0000 (-0400) Subject: fixed bug with buf_fetch X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=0c550ae06cb067d1a1faaa5d33c6ec93de5b3c17;p=projs%2Ftide.git fixed bug with buf_fetch --- 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;