From 995a9ce9c2ef7ea54c0a3bda85fe56193395f8e1 Mon Sep 17 00:00:00 2001 From: Uveso Date: Tue, 5 Nov 2024 01:06:42 +0100 Subject: [PATCH 1/2] fix nil error in key check Resolved nil error in key check; added missing comparison for action. --- lua/keymap/keymapper.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/keymap/keymapper.lua b/lua/keymap/keymapper.lua index b0fa5c96b2..a4c8806a92 100644 --- a/lua/keymap/keymapper.lua +++ b/lua/keymap/keymapper.lua @@ -207,7 +207,7 @@ function GetKeyActions() local debugKeyActions = import("/lua/keymap/debugkeyactions.lua").debugKeyActions for k,v in keyActions do - if ret[k] and ret[k] != v.action then + if ret[k] and ret[k].action != v.action then WARN(string.format("Overwriting user key action: %s -> %s", k, ret[k].action)) end From d02b6288613032a851c0dd57872b43efc3823d1a Mon Sep 17 00:00:00 2001 From: Uveso Date: Mon, 11 Nov 2024 03:32:12 +0100 Subject: [PATCH 2/2] fix 2nd loop --- lua/keymap/keymapper.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/keymap/keymapper.lua b/lua/keymap/keymapper.lua index a4c8806a92..28bfd0b3b1 100644 --- a/lua/keymap/keymapper.lua +++ b/lua/keymap/keymapper.lua @@ -215,7 +215,7 @@ function GetKeyActions() end for k,v in debugKeyActions do - if ret[k] and ret[k] != v.action then + if ret[k] and ret[k].action != v.action then WARN(string.format("Overwriting user key action: %s -> %s", k, ret[k].action)) end