diff options
author | 2014-03-27 13:45:29 -0400 | |
---|---|---|
committer | 2014-03-27 13:45:29 -0400 | |
commit | 7785897657cd9c3a5e1483ebacad73939f375a7e (patch) | |
tree | b168e4ec9c72248be21841807177870a07f32659 /core/ui.lua | |
parent | f65b2b2a66f05b20010256ca1d81cc3252ea1471 (diff) | |
download | textadept-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.lua | 6 |
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 |