aboutsummaryrefslogtreecommitdiffhomepage
path: root/core
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2009-04-02 17:00:06 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2009-04-02 17:00:06 -0400
commit480acebc578b95d553ffb5061f773a03a3a1a731 (patch)
treeec2d994e3c58aa7c3626f640c4c45de288687a3a /core
parent1e2229bd49b7d6459891c2cc4c9a176bd1382c33 (diff)
Display an 'ok-msgbox' on Replace error; core/ext/find.lua
Diffstat (limited to 'core')
-rw-r--r--core/ext/find.lua5
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