aboutsummaryrefslogtreecommitdiff
path: root/core/ext/find.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2008-02-23 18:13:24 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2008-02-23 18:13:24 -0500
commit47b8c0db856c48abbcbcb5635deaa5c2cc41427e (patch)
tree2d94eab5c87463131001fc815e60acf0cc9c6f41 /core/ext/find.lua
parent04a91f8ab1db479b48f26f3f808b74ba8a617e9b (diff)
downloadtextadept-47b8c0db856c48abbcbcb5635deaa5c2cc41427e.tar.gz
textadept-47b8c0db856c48abbcbcb5635deaa5c2cc41427e.zip
Eliminated Zenity dependency; replaced with my CocoaDialog clone (lua_dialog).
Diffstat (limited to 'core/ext/find.lua')
-rw-r--r--core/ext/find.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/ext/find.lua b/core/ext/find.lua
index 803e31a9..3b571857 100644
--- a/core/ext/find.lua
+++ b/core/ext/find.lua
@@ -96,7 +96,11 @@ function find.replace(rtext)
function(code)
local ret, val = pcall( loadstring('return '..code) )
if not ret then
- os.execute('zenity --error --text "'..val:gsub('"', '\\"')..'"')
+ cocoa_dialog( 'msgbox', {
+ title = 'Error',
+ text = 'An error occured:',
+ ['informative-text'] = val:gsub('"', '\\"')
+ } )
error()
end
return val