aboutsummaryrefslogtreecommitdiff
path: root/core/ext/pm.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-26 16:54:56 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-26 16:54:56 -0500
commit10398566eb46ae7b76844c77501461ce1945755e (patch)
tree6c311fced5ec35db3a3d525fc1be7b890b321ca4 /core/ext/pm.lua
parentde75865048797117e548d894051a7ce76cbe4b05 (diff)
downloadtextadept-10398566eb46ae7b76844c77501461ce1945755e.tar.gz
textadept-10398566eb46ae7b76844c77501461ce1945755e.zip
Menu label text is irrelevant for PM menu actions due to l10n; focus on menu_id.
Diffstat (limited to 'core/ext/pm.lua')
-rw-r--r--core/ext/pm.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/ext/pm.lua b/core/ext/pm.lua
index 8122c419..e70ae6e2 100644
--- a/core/ext/pm.lua
+++ b/core/ext/pm.lua
@@ -107,14 +107,13 @@ end
---
-- Performs an action based on the selected menu item.
-- This function is called internally and shouldn't be called by a script.
--- @param menu_item The label text of the menu item selected.
-- @param menu_id The numeric ID of the menu item.
-- @param selected_item Identical to 'full_path' in pm.get_contents_for.
-- @see pm.get_contents_for
-function pm.perform_menu_action(menu_item, menu_id, selected_item)
+function pm.perform_menu_action(menu_id, selected_item)
for _, browser in pairs(pm.browsers) do
if browser.matches(selected_item[1]) then
- return browser.perform_menu_action(menu_item, menu_id, selected_item)
+ return browser.perform_menu_action(menu_id, selected_item)
end
end
end