aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/settings.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/settings.lua b/plugins/settings.lua
index 7846d2e..3696310 100644
--- a/plugins/settings.lua
+++ b/plugins/settings.lua
@@ -689,6 +689,15 @@ local function apply_keybinding(cmd, bindings, skip_save)
end
if #bindings > 0 then
+ if
+ not skip_save
+ and
+ settings.config.custom_keybindings
+ and
+ settings.config.custom_keybindings[cmd]
+ then
+ settings.config.custom_keybindings[cmd] = {}
+ end
local shortcuts = ""
for _, binding in ipairs(bindings) do
if not binding:match("%+$") and binding ~= "" and binding ~= "none" then