From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 From: Costin Chirvasuta Date: Fri, 12 Aug 2016 15:30:28 +0300 Message-ID: To: 9fans <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: [9fans] bufreset deletes b->nbl-1 blocks? Topicbox-Message-UUID: 96f99098-ead9-11e9-9d60-3106f5b1d025 I'm reading the sam source (very educational) and I've stumbled across a piece I don't understand, in buff.c:^bufreset: for(i=b->nbl-1; --i>=0; ) delblock(b, i); Doesn't this delete b-nbl-1 blocks? Also delblock would always call memmove, moving 1 block at the end, if I read it correctly.