diff options
author | 2015-03-16 16:55:12 -0400 | |
---|---|---|
committer | 2015-03-16 16:55:12 -0400 | |
commit | 39b5f8728fdd215217d2749c20a2668ecbb5f080 (patch) | |
tree | 603e845b6683f6725593c8f12e69183156b6c5c2 /core/ui.lua | |
parent | cb3e886bba78a040d486af518d491cc191cebfd8 (diff) | |
download | textadept-39b5f8728fdd215217d2749c20a2668ecbb5f080.tar.gz textadept-39b5f8728fdd215217d2749c20a2668ecbb5f080.zip |
Code cleanup based on the output of luacheck, a Lua linter.
Diffstat (limited to 'core/ui.lua')
-rw-r--r-- | core/ui.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ui.lua b/core/ui.lua index c6244ea2..1da1b159 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -43,7 +43,7 @@ local theme_props = {} -- @see ui._print local function _print(buffer_type, ...) local print_buffer - for i, buffer in ipairs(_BUFFERS) do + for _, buffer in ipairs(_BUFFERS) do if buffer._type == buffer_type then print_buffer = buffer break end end if not print_buffer then @@ -85,7 +85,7 @@ function ui._print(buffer_type, ...) pcall(_print, buffer_type, ...) end function ui.print(...) ui._print(_L['[Message Buffer]'], ...) end -- Documentation is in core/.ui.dialogs.luadoc. -ui.dialogs = setmetatable({}, {__index = function(t, k) +ui.dialogs = setmetatable({}, {__index = function(_, k) -- Wrapper for `ui.dialog(k)`, transforming the given table of arguments into -- a set of command line arguments and transforming the resulting standard -- output into Lua objects. |