aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/events.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/events.lua b/core/events.lua
index 23ce1ae3..a1e32dc8 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -466,8 +466,9 @@ add_handler('quit',
end)
if MAC then
- function appleevent_odoc(uri) return handle('appleevent_odoc', uri) end
- add_handler('appleevent_odoc', function(uri) textadept.io.open(uri) end)
+ function appleevent_odoc(uri)
+ return handle('uri_dropped', 'file://'..uri)
+ end
end
---