github saberzero1/motions 0.125.0

latest releases: 1.4.0, 1.3.1, 1.3.0...
one month ago

Fixed

  • Vim mode indicator desynchronized when switching tabs — switching between editors in different vim modes (e.g., Insert in Tab A, Normal in Tab B) left the status bar showing the previous editor's mode. Root cause: VimModeTracker's active-leaf-change handler attached event listeners to the new adapter but never read the new adapter's current vim mode — the display only updated when a subsequent vim-mode-change event fired. If the destination editor was already in Normal mode, no event fired and the indicator stayed stale. Fixed by adding syncModeFromAdapter() which reads the vim state's boolean flags (insertMode, visualMode, visualLine, visualBlock, selectMode, virtualReplace, insertModeReturn) directly from the adapter and updates the display immediately after attaching to the new adapter on leaf change. (#140)
    • Plugin: src/vim/mode-tracker.ts (new syncModeFromAdapter method; called after attachToAdapter in active-leaf-change handler)

Tests

  • 2 new regression tests in test/specs/vim-builtin/mode-indicators.e2e.ts (#140): Insert→Normal tab switch syncs indicator, Normal→Insert tab switch syncs indicator

Documentation

  • CHANGELOG.md

Full Changelog: 0.124.0...0.125.0

Don't miss a new motions release

NewReleases is sending notifications on new releases.