aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/find.lua2
-rw-r--r--modules/textadept/keys.lua4
-rw-r--r--modules/textadept/menu.lua4
-rw-r--r--modules/textadept/session.lua4
-rw-r--r--modules/textadept/snapopen.lua2
5 files changed, 5 insertions, 11 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index 74ac9739..2bd8f4cf 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -100,8 +100,6 @@ function find.find_in_files(utf8_dir)
if not utf8_dir then
utf8_dir = gui.dialog('fileselect',
'--title', _L['Find in Files'],
- '--button1', _L['_Open'],
- '--button2', _L['_Cancel'],
'--select-only-directories',
'--with-directory',
(buffer.filename or ''):match('^.+[/\\]') or '',
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index c28f1ca1..2951c2b3 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -564,8 +564,8 @@ if not NCURSES then
keys.f1 = {utils.open_webpage, _HOME..'/doc/01_Introduction.html'}
keys.sf1 = {utils.open_webpage, _HOME..'/doc/api/index.html'}
end
--- TODO: {gui.dialog, 'ok-msgbox', '--title', 'Textadept', '--informative-text',
--- _RELEASE, '--button1', _L['_OK'], '--no-cancel'}
+-- TODO: {gui.dialog, 'ok-msgbox', '--title', 'Textadept', '--text', _RELEASE,
+-- '--button1', _L['_OK'], '--no-cancel'}
-- Movement commands.
if OSX then
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index 904cce9f..7c481f4b 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -214,8 +214,8 @@ M.menubar = {
{_L['Show _LuaDoc'], {utils.open_webpage, _HOME..'/doc/api/index.html'}},
SEPARATOR,
{_L['_About'],
- {gui.dialog, 'ok-msgbox', '--title', 'Textadept', '--informative-text',
- _RELEASE, '--button1', _L['_OK'], '--no-cancel'}},
+ {gui.dialog, 'ok-msgbox', '--title', 'Textadept', '--text', _RELEASE,
+ '--button1', _L['_OK'], '--no-cancel'}},
},
}
diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua
index 05b7ff58..35ecf9be 100644
--- a/modules/textadept/session.lua
+++ b/modules/textadept/session.lua
@@ -40,8 +40,6 @@ M.MAX_RECENT_FILES = 10
function M.load(filename)
filename = filename or gui.dialog('fileselect',
'--title', _L['Load Session'],
- '--button1', _L['_Open'],
- '--button2', _L['_Cancel'],
'--with-directory',
M.DEFAULT_SESSION:match('.+[/\\]') or '',
'--with-file',
@@ -132,8 +130,6 @@ end)
function M.save(filename)
filename = filename or gui.dialog('filesave',
'--title', _L['Save Session'],
- '--button1', _L['_Save'],
- '--button2', _L['_Cancel'],
'--with-directory',
M.DEFAULT_SESSION:match('.+[/\\]') or '',
'--with-file',
diff --git a/modules/textadept/snapopen.lua b/modules/textadept/snapopen.lua
index c8e5ff86..04e60002 100644
--- a/modules/textadept/snapopen.lua
+++ b/modules/textadept/snapopen.lua
@@ -133,7 +133,7 @@ function M.open(utf8_paths, filter, exclude_FILTER, depth)
if #list >= M.MAX then
gui.dialog('ok-msgbox',
'--title', _L['File Limit Exceeded'],
- '--informative-text',
+ '--text',
string.format('%d %s %d', M.MAX,
_L['files or more were found. Showing the first'],
M.MAX),