diff options
author | 2009-04-02 17:00:06 -0400 | |
---|---|---|
committer | 2009-04-02 17:00:06 -0400 | |
commit | 480acebc578b95d553ffb5061f773a03a3a1a731 (patch) | |
tree | ec2d994e3c58aa7c3626f640c4c45de288687a3a /core | |
parent | 1e2229bd49b7d6459891c2cc4c9a176bd1382c33 (diff) | |
download | textadept-480acebc578b95d553ffb5061f773a03a3a1a731.tar.gz textadept-480acebc578b95d553ffb5061f773a03a3a1a731.zip |
Display an 'ok-msgbox' on Replace error; core/ext/find.lua
Diffstat (limited to 'core')
-rw-r--r-- | core/ext/find.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/ext/find.lua b/core/ext/find.lua index 7d1b7873..f7eb2047 100644 --- a/core/ext/find.lua +++ b/core/ext/find.lua @@ -186,10 +186,11 @@ function find.replace(rtext) function(code) local ret, val = pcall(loadstring('return '..code)) if not ret then - cocoa_dialog('msgbox', { + cocoa_dialog('ok-msgbox', { title = locale.FIND_ERROR_DIALOG_TITLE, text = locale.FIND_ERROR_DIALOG_TEXT, - ['informative-text'] = val:gsub('"', '\\"') + ['informative-text'] = val:gsub('"', '\\"'), + ['no-cancel'] = true }) error() end |