fix(Layer): `unmap` before `enter`ing layer

It didn't work before because the layer would still apply the "unmapped"
LHS when entering.
pull/20/head
Iron-E 1 year ago
parent 72f45f9187
commit a7dbc7b76e
No known key found for this signature in database
GPG Key ID: 83A6AEB40395D40D

@ -180,10 +180,13 @@ function Layer:unmap(buffer, mode, lhs)
return
end
end
end
-- remove this keymap from the list of ones to restore
self.existing_keymaps_by_mode[mode][lhs] = nil
-- remove this keymap from the list of ones to restore
self.existing_keymaps_by_mode[mode][lhs] = nil
else
-- remove this keymap from the list of ones to create
self.layer_keymaps_by_mode[mode][lhs] = nil
end
end
return Layer

Loading…
Cancel
Save