]> git.mdlowis.com Git - projs/tide.git/commitdiff
fixed bug with undo/redo
authorMichael D. Lowis <mike@mdlowis.com>
Wed, 22 Aug 2018 01:28:31 +0000 (21:28 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Wed, 22 Aug 2018 01:28:31 +0000 (21:28 -0400)
lib/buf.c

index ce014726e6b40a54fe3711727016049ff3413fde..8c05e3035259a13da83e7c6f15bd71536c7d5e83 100644 (file)
--- 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) {