> I find this code pretty unreadable, but possibly lines 315 and 316
> should be manipulating newpage->buffer instead of buffer?
>
You are right, I'll commit changes some later with a lot of additional work..
--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/