ref: 0b8bc0b02656311de2b1542d5819d7118c789ab5
parent: 39717da8685018ea58825d96f91179d27f55376e
author: qwx <[email protected]>
date: Tue Jul 25 00:23:07 EDT 2023
fix inserting instead of replacing when there's no selection
--- a/chunk.c
+++ b/chunk.c
@@ -223,6 +223,7 @@
d.totalsz += c->len;
d.cur = d.from = dp->from < d.totalsz ? dp->from : 0;
d.to = d.totalsz;
+ d.off = -1;
return d;
}