diff options
author | 2008-02-23 18:13:24 -0500 | |
---|---|---|
committer | 2008-02-23 18:13:24 -0500 | |
commit | 47b8c0db856c48abbcbcb5635deaa5c2cc41427e (patch) | |
tree | 2d94eab5c87463131001fc815e60acf0cc9c6f41 /core/ext | |
parent | 04a91f8ab1db479b48f26f3f808b74ba8a617e9b (diff) | |
download | textadept-47b8c0db856c48abbcbcb5635deaa5c2cc41427e.tar.gz textadept-47b8c0db856c48abbcbcb5635deaa5c2cc41427e.zip |
Eliminated Zenity dependency; replaced with my CocoaDialog clone (lua_dialog).
Diffstat (limited to 'core/ext')
-rw-r--r-- | core/ext/find.lua | 6 |
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 |