diff --git a/changelog/snippets/fix.6510.md b/changelog/snippets/fix.6510.md new file mode 100644 index 0000000000..4479aad79b --- /dev/null +++ b/changelog/snippets/fix.6510.md @@ -0,0 +1 @@ +- (#6510) Fix a warning not being given when user key actions were overwritten by default actions. diff --git a/lua/keymap/keymapper.lua b/lua/keymap/keymapper.lua index b0fa5c96b2..28bfd0b3b1 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 @@ -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