diff options
author | 2010-12-29 16:26:04 -0500 | |
---|---|---|
committer | 2010-12-29 16:26:04 -0500 | |
commit | 99f45c277522bd5773d897447ac1f16c5d9d7d78 (patch) | |
tree | 438787c731e9f39b2d32c04ab8b62b8406d5e2c0 | |
parent | 79d1d1a0d5db28de960a373567d3305b17887fe9 (diff) | |
download | textadept-99f45c277522bd5773d897447ac1f16c5d9d7d78.tar.gz textadept-99f45c277522bd5773d897447ac1f16c5d9d7d78.zip |
No more pasting issue in Mac OSX; core/gui.lua
-rw-r--r-- | core/gui.lua | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/core/gui.lua b/core/gui.lua index ab255e67..51138bd1 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -176,6 +176,8 @@ connect('uri_dropped', end end end) +connect('appleevent_odoc', + function(uri) return events.emit('uri_dropped', 'file://'..uri) end) local string_format = string.format local EOLs = { L('CRLF'), L('CR'), L('LF') } @@ -269,17 +271,4 @@ connect('quit', return true end) -if OSX then - connect('appleevent_odoc', - function(uri) return events.emit('uri_dropped', 'file://'..uri) end) - - connect('buffer_new', - function() -- GTK-OSX has clipboard problems - buffer.paste = function() - local clipboard_text = gui.clipboard_text - if #clipboard_text > 0 then buffer:replace_sel(clipboard_text) end - end - end) -end - connect('error', function(...) gui._print(L('[Error Buffer]'), ...) end) |