From: Keir Fraser Subject: Re: [PATCH] Fix pygrub with "many" kernels Date: Thu, 05 Oct 2006 16:12:35 +0100 Message-ID: References: <1159999027.25209.30.camel@orodruin.boston.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1159999027.25209.30.camel@orodruin.boston.redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Katz , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 4/10/06 22:57, "Jeremy Katz" wrote: > Attached fixes running pygrub with many kernels to do proper scrolling > > Signed-off-by: Jeremy Katz + if self.selected_image > self.start_image + maxy: + self.start_image = self.selected_image + if self.selected_image < self.start_image: + self.start_image = self.selected_image Shouldn't the second line above be: self.start_image = self.selected_image - maxy So that the selected image is the one at the bottom of the displayed subsection of the list? -- Keir