Search and jump to display blank space #1694
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the measure function of the EditView class, there is a maximum of 5 calculations in the for loop for calculating jump anchors, which results in the final calculation of rendered content being greater than five times when the auto wrap setting is enabled. As a result, only the layout will be changed without updating the selection information and real content.
This is not a normal effect of enabling line wrapping. There will be something else going on, such as an extension responding to viewport changes in a way that continues to affect the viewport. Just making this loop infinite is obviously not a good solution—the editor will hang, or at least respond very slowly, when this situation occurs.
If you can reduce the problem to a small, reasonable bit of code, I can take a look and see if I can debug what's going on.