aboutsummaryrefslogtreecommitdiff
path: root/core/ui.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-03-27 13:45:29 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2014-03-27 13:45:29 -0400
commit7785897657cd9c3a5e1483ebacad73939f375a7e (patch)
treeb168e4ec9c72248be21841807177870a07f32659 /core/ui.lua
parentf65b2b2a66f05b20010256ca1d81cc3252ea1471 (diff)
downloadtextadept-7785897657cd9c3a5e1483ebacad73939f375a7e.tar.gz
textadept-7785897657cd9c3a5e1483ebacad73939f375a7e.zip
Added basic project support for snapopen and build scripts.
Also fixed some curses errors introduced by the last commit.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/ui.lua b/core/ui.lua
index 6ebd28b1..3aa30855 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -28,7 +28,7 @@ local ui = ui
-- The default value is `true`.
-- @field SILENT_PRINT (bool)
-- Whether or not to print messages to buffers silently.
--- The default value is `false`, and focuses buffers when messages are printed
+-- The default value is `false`, and focuses buffers when messages are printed
-- to them.
module('ui')]]
@@ -94,8 +94,8 @@ ui.dialogs = setmetatable({}, {__index = function(t, k)
return function(options)
if not options.button1 then options.button1 = _L['_OK'] end
local select = options.select
- if type(select) == 'number' then
- options.select = select - 1
+ if type(select) == 'number' then
+ options.select = select - 1
elseif type(select) == 'table' then
for i = 1, #select do select[i] = select[i] - 1 end
end