From 4ca29592357e698959441392a9e7b9b38dcf38c0 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 12 Mar 2015 16:52:40 -0400 Subject: Lua code cleanup. --- core/keys.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'core/keys.lua') 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()`. -- cgit v1.2.3