Skip to content

0.51.1

Choose a tag to compare

@github-actions github-actions released this 11 Jul 23:29
· 579 commits to master since this release
0.51.1
57acc81

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