github saberzero1/motions 0.51.1

latest releases: 0.150.0, 0.149.0, 0.148.0...
2 months ago

Fixed

  • Yank highlight over-extending on headings — linewise yank (yy) on a heading with text on the very next line highlighted both lines, even though only the heading line was yanked. The highlight range calculation used state.doc.lineAt(sel.to).to to find the end of the highlight, but the codemirror-vim fork's expandSelectionToLine() sets sel.to to the start of the next line (via curEnd.line++). Calling lineAt() on that position resolved to the entire next line, extending the highlight one line too far. Fixed by using sel.to directly as the highlight end boundary, which already points to the correct position (the start of the line after the last yanked line). (#53)
    • Plugin: src/main.ts (attachYankHighlight linewise range calculation)

Full Changelog: 0.51.0...0.51.1

Don't miss a new motions release

NewReleases is sending notifications on new releases.