From: Michael D. Lowis Date: Wed, 22 Aug 2018 01:28:31 +0000 (-0400) Subject: fixed bug with undo/redo X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=83e14f705040d49486a7f7b6518ad8e9ae322dcd;p=projs%2Ftide.git fixed bug with undo/redo --- diff --git a/lib/buf.c b/lib/buf.c index ce01472..8c05e30 100644 --- a/lib/buf.c +++ b/lib/buf.c @@ -166,6 +166,7 @@ static void log_clear(Log** list) { static void log_swap(Buf* buf, Log** src, Log** dest) { if (!*src) return; Log* item = *src; + *src = item->next; buf->selection.beg = item->beg; buf->selection.end = item->end; if (item->data) {