Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit e59c527

Browse files
committed
Fix keymaps.
1 parent 8934313 commit e59c527

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/mind/commands.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ M.precompute_commands = function()
773773
if (cmd ~= nil) then
774774
mind_keymap.keymaps.normal[key] = cmd
775775
end
776-
else
776+
elseif c == false then
777777
-- remove the command otherwise (useful if the user set it to false, for instance)
778778
mind_keymap.keymaps.normal[key] = nil
779779
end
@@ -786,7 +786,7 @@ M.precompute_commands = function()
786786
if (cmd ~= nil) then
787787
mind_keymap.keymaps.selection[key] = cmd
788788
end
789-
else
789+
elseif c == false then
790790
-- remove the command otherwise (useful if the user set it to false, for instance)
791791
mind_keymap.keymaps.selection[key] = nil
792792
end

0 commit comments

Comments
 (0)