aboutsummaryrefslogtreecommitdiff
path: root/core/events.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/events.lua')
-rw-r--r--core/events.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/events.lua b/core/events.lua
index 48575b8e..451e3af1 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -521,6 +521,11 @@ add_handler('quit',
return true
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)
+end
+
---
-- Default error handler.
-- Opens a new buffer (if one hasn't already been opened) for printing errors.