From: Michael D. Lowis Date: Mon, 2 Apr 2018 19:28:38 +0000 (-0400) Subject: fixed delete function X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=af34fdfcbabf1f568fc5bf24707673084c0b2d99;p=projs%2Ftide.git fixed delete function --- diff --git a/lib/buf.c b/lib/buf.c index 4adfc0e..426338b 100644 --- a/lib/buf.c +++ b/lib/buf.c @@ -191,6 +191,8 @@ void buf_del(Buf* buf, Sel* p_sel) { //char* str = buf_gets(buf, &sel); syncgap(buf, sel.beg); buf->gapend += nbytes; + sel.end = sel.beg; + setsel(buf, p_sel, &sel); // update log here // free(str); }