svn commit: r329417 - head/stand/lua

Kyle Evans kevans at FreeBSD.org
Fri Feb 16 23:59:51 UTC 2018


Author: kevans
Date: Fri Feb 16 23:59:50 2018
New Revision: 329417
URL: https://svnweb.freebsd.org/changeset/base/329417

Log:
  stand/lua: Make CAROUSEL_ENTRY func parameters consistent with name
  
  We have no need for the index yet, but add it anyways to keep signatures
  consistent.

Modified:
  head/stand/lua/menu.lua

Modified: head/stand/lua/menu.lua
==============================================================================
--- head/stand/lua/menu.lua	Fri Feb 16 23:18:42 2018	(r329416)
+++ head/stand/lua/menu.lua	Fri Feb 16 23:59:50 2018	(r329417)
@@ -213,7 +213,7 @@ menu.welcome = {
 			    " (" .. idx ..
 			    " of " .. #all_choices .. ")";
 		end,
-		func = function(choice, all_choices)
+		func = function(idx, choice, all_choices)
 			if (#all_choices > 1) then
 				config.reload(choice);
 			end
@@ -302,7 +302,7 @@ function menu.run(m)
 				if (#choices > 0) then
 					caridx = (caridx % #choices) + 1;
 					menu.setCarouselIndex(carid, caridx);
-					sel_entry.func(choices[caridx],
+					sel_entry.func(caridx, choices[caridx],
 					    choices);
 				end
 			elseif (sel_entry.entry_type == core.MENU_SUBMENU) then


More information about the svn-src-head mailing list