aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/keys.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2015-03-12 16:52:40 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2015-03-12 16:52:40 -0400
commit4ca29592357e698959441392a9e7b9b38dcf38c0 (patch)
tree0bdca0c14a3057b54242f360c70abc28fc1ff16b /core/keys.lua
parent75a66036a42d117decbd29eb78bd55283b6972e1 (diff)
Lua code cleanup.
Diffstat (limited to 'core/keys.lua')
-rw-r--r--core/keys.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/keys.lua b/core/keys.lua
index 2f09d70f..783e59ce 100644
--- a/core/keys.lua
+++ b/core/keys.lua
@@ -91,8 +91,8 @@ local M = {}
-- ## Key Chains
--
-- Key chains are a powerful concept. They allow you to assign multiple key
--- bindings to one key sequence. By default, the `Esc` (`⎋` on Mac OSX | `Esc`
--- in curses) key cancels a key chain, but you can redefine it via
+-- bindings to one key sequence. By default, the `Esc` (`⎋` on Mac OSX | `Esc`
+-- in curses) key cancels a key chain, but you can redefine it via
-- [`keys.CLEAR`](). An example key chain looks like:
--
-- keys['aa'] = {
@@ -186,8 +186,7 @@ M.run_command = function(command, command_type)
end
end
end
- local _, result = xpcall(f, key_error, table.unpack(args, 2))
- return result
+ return select(2, xpcall(f, key_error, table.unpack(args, 2)))
end
-- Return codes for `key_command()`.