Fixed
- Animated cursor character displaced on lines with tall content — on lines containing tall inline elements (e.g., MathJax with
\dfrac), the character rendered beneath the block cursor shifted vertically. Root cause: the renderer's baseline formula centered the character within thecoordsAtPos()rect height, which on some platforms/fonts returns the full line height instead of the per-character height. For a ~80px tall line with ~19px font height, this produced a ~30px downward shift. Fixed by using the actual DOM character bounding rect (Range.getBoundingClientRect()viaview.domAtPos()) for baseline calculation, falling back tocoordsAtPos()when the DOM rect is unavailable. (#106)- Plugin:
src/vim/animated-cursor/renderer.ts(BlockCharInfo— addedcharTop/charHeightfields;drawCursorShapeanddrawSmearCursor— baseline anchored to DOM char rect when available) - Plugin:
src/vim/animated-cursor/controller.ts(resolveBlockChar— extracts DOM character bounding rect viaRange.getBoundingClientRect())
- Plugin:
Documentation
CHANGELOG.mdKNOWN_LIMITATIONS.md: Marked animated cursor tall-line character displacement as fixedCONTRIBUTING.md: Updatedrenderer.tsdescription with DOM-based baseline calculationAGENTS.md: Updatedrenderer.tsdescription in animated cursor codebase structuredocs/features/animated-cursor.md: Added tall-line displacement fix to known limitations
Full Changelog: 0.97.0...0.98.0