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: [EMAIL PROTECTED] WWW: http://www.sigaev.ru/ ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster