mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Use menu item as sender when triggering its action
This is required so that the receiver can ask the menu item (sender) for its tag value.
This commit is contained in:
@@ -594,7 +594,7 @@ static std::vector<bundles::item_ptr> relevant_items_in_scope (scope::context_t
|
||||
{
|
||||
[self.window orderOut:self];
|
||||
if(menuItem.action)
|
||||
[NSApp sendAction:menuItem.action to:menuItem.target from:self];
|
||||
[NSApp sendAction:menuItem.action to:menuItem.target from:menuItem];
|
||||
[self.window close];
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user