codemirror-minimap icon indicating copy to clipboard operation
codemirror-minimap copied to clipboard

Bug: Support line wrapping

Open bradymadden97 opened this issue 2 years ago • 1 comments

Currently we assume lines do not wrap. If an editor wraps has a fixed width and causes lines to wrap (ex. EditorView.lineWrapping) it will throw off a number of assumptions we make

  • We don't render the wrapped text/blocks on a new line
  • ~We calculate the viewport overlay incorrectly~
  • ~We scroll incorrectly~

Will likely require using the character width & the scrollDOM width

bradymadden97 avatar Apr 23 '23 16:04 bradymadden97

WIP in this branch https://github.com/replit/codemirror-minimap/compare/line-wrapping?expand=1

bradymadden97 avatar Jun 22 '23 19:06 bradymadden97