Closed FFFFFFFXXXXXXX closed 1 month ago
What is happening here is that the browser's CSS engine, which internally uses fixed-precision numbers, starts falling apart at this scale. CodeMirror has some (gnarly) scaling logic to make documents higher than this limit work, but it doesn't currently have any such strategy for lines wider than the limit.
Thanks for the quick answer. Since this is more of a browser limitation should I close this issue?
Attached patch adds a kludge to try and keep the actual pixel size of such lines small enough for the browser to be able to lay them out.
Err, ignore that first patch link. That was just me committing in the wrong directory. The second one is the actual patch.
I just noticed there was already a release that includes the patch - works perfectly. Just wanted to let you know I really appreciate your work and the quick response :)
Describe the issue
If I set the content of the editor to a single line containing more than 1_245_526 characters in firefox or more than 1_877_171 characters in chrome the cursor disappears.
Additionally in firefox with enough characters the cursor gets placed in a different position in the text than was clicked.
Reproduce:
Additionally:
Tested on:
Browser and platform
No response
Reproduction link
No response