diff options
author | 2015-03-16 16:55:12 -0400 | |
---|---|---|
committer | 2015-03-16 16:55:12 -0400 | |
commit | 39b5f8728fdd215217d2749c20a2668ecbb5f080 (patch) | |
tree | 603e845b6683f6725593c8f12e69183156b6c5c2 /modules/textadept/keys.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 'modules/textadept/keys.lua')
-rw-r--r-- | modules/textadept/keys.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index 09f9bab8..f0add5cd 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -633,17 +633,17 @@ keys.find_incremental = { end } -- Add the character for any key pressed without modifiers to incremental find. -setmetatable(keys.find_incremental, {__index = function(t, k) +setmetatable(keys.find_incremental, {__index = function(_, k) if #k > 1 and k:find('^[cams]*.+$') then return end ui.find.find_incremental(ui.command_entry:get_text()..k, true) end}) -- Show documentation for symbols in the Lua command entry. keys.lua_command[not CURSES and 'ch' or 'mh'] = function() -- Temporarily change _G.buffer since ui.command_entry is the "active" buffer. - local buffer = _G.buffer + local orig_buffer = _G.buffer _G.buffer = ui.command_entry textadept.editing.show_documentation() - _G.buffer = buffer + _G.buffer = orig_buffer end if OSX or CURSES then -- UTF-8 input. |