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 usedstate.doc.lineAt(sel.to).toto find the end of the highlight, but the codemirror-vim fork'sexpandSelectionToLine()setssel.toto the start of the next line (viacurEnd.line++). CallinglineAt()on that position resolved to the entire next line, extending the highlight one line too far. Fixed by usingsel.todirectly 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(attachYankHighlightlinewise range calculation)
- Plugin:
Full Changelog: 0.51.0...0.51.1