From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] Page problems From: erik quanstrom Date: Sat, 29 Sep 2007 10:37:13 -0400 In-Reply-To: <20070929142156.GA801@shodan.homeunix.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: c7627e04-ead2-11e9-9d60-3106f5b1d025 > As I said, it is weekend and I've got a little time at my hands to look > into this. The problem is indeed with the cacheing. A quick fix is this > change to /sys/src/cmd/page/view.c: > > 136,138c136 > < if(im == nil) > < wexits(0); > < if(resizing) > --- >> if(im && resizing) > > I'm about to submit a patch with that for the powers that be. I haven't > extensively tested the diff, but it is as unobtrusive as I could wish for. > > Martin in order for im to return nil, this test has to be true if((page < 0 || page >= doc->npage) && !doc->fwdonly) return nil; i think the question is, why is page out of range and what's it's value? - erik