From 7e04b9a79739d9e31270057a4cb6a16441ecab37 Mon Sep 17 00:00:00 2001 From: HW Date: Thu, 8 Dec 2011 19:52:07 +0100 Subject: [PATCH] fixed more bugs --- filechooser.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filechooser.lua b/filechooser.lua index a0bd1ff4c..ad2567bf8 100644 --- a/filechooser.lua +++ b/filechooser.lua @@ -95,7 +95,7 @@ function FileChooser:choose(ypos, height) if ev.code == KEY_FW_UP then if self.current == 1 then if self.page > 1 then - self.current = self.perpage + self.current = perpage self.page = self.page - 1 pagedirty = true end @@ -107,7 +107,7 @@ function FileChooser:choose(ypos, height) if self.current == perpage then if self.page < (self.items / perpage) then self.current = 1 - self.page = page + 1 + self.page = self.page + 1 pagedirty = true end else