From decacd9170f48687679d3446ec2d298bc4558dda Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Fri, 2 Mar 2018 17:07:08 +0000 Subject: [PATCH] lualoader: Reset the cursor position after the menu is drawn Rather than before the menu is drawn. The drawer is going to reset the crusor position as soon as it draws anything anyways, so doing it before serves no purpose. Setting it after is needed so we don't clobber the menu when we start booting. --- stand/lua/menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua index 6e714f9ac080..a950ebf07fa0 100644 --- a/stand/lua/menu.lua +++ b/stand/lua/menu.lua @@ -346,9 +346,9 @@ menu.current_alias_table = {} function menu.draw(menudef) -- Clear the screen, reset the cursor, then draw screen.clear() - screen.defcursor() menu.current_alias_table = drawer.drawscreen(menudef) drawn_menu = menudef + screen.defcursor() end -- 'keypress' allows the caller to indicate that a key has been pressed that we