Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 23:59:51 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329417 - head/stand/lua
Message-ID:  <201802162359.w1GNxp9Z015586@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802162359.w1GNxp9Z015586>