github saberzero1/motions 0.21.2

latest releases: 1.4.0, 1.3.1, 1.3.0...
3 months ago

Fixed

  • Plugin fails to load when built-in Vim mode is enabled — three fork-only API methods were called unconditionally, but do not exist on Obsidian's built-in Vim API. When built-in Vim mode is enabled (or when another plugin pre-installs window.CodeMirrorAdapter.Vim with the built-in API), getVimApi() returns the built-in Vim object and the calls throw TypeError: … is not a function. Added typeof guards to all three call sites and marked the methods as optional in the VimApi type definition. (#29)
    • vim.resetKeymap() in onload() — prevented the plugin from loading entirely
    • vimApi.clearInputState(cm, 'pane-switch') in the active-leaf-change handler — crashed on every tab switch when a partial key buffer was pending
    • this.vim.removeMapCommand(reg.keys) in VimRegistration.removeRegistration() — crashed during plugin unload or feature toggle when cleaning up mapCommand registrations

Full Changelog: 0.21.1...0.21.2

Don't miss a new motions release

NewReleases is sending notifications on new releases.