From 480acebc578b95d553ffb5061f773a03a3a1a731 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 2 Apr 2009 17:00:06 -0400 Subject: Display an 'ok-msgbox' on Replace error; core/ext/find.lua --- core/ext/find.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/ext') 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 -- cgit v1.2.3