CodeEdit
CodeEdit copied to clipboard
🐞 Ruler shows wrong line numbers when re-rendering
Description
When first opening a file, the ruler displays the correct line numbering. However, when clicking on the textView again, the ruler gets re-rendered with the wrong line numbers:
https://user-images.githubusercontent.com/82230675/213801872-4f1b12b2-61ba-4975-bc2f-b5cb03077d01.mov
To Reproduce
- Open any file in a small window instance, which causes multiple line breaks.
- Click at any point in the textView.
Expected behavior
The ruler should re-render with the correct line numbers.
Version information
macOS: 13.1 Xcode: 14.2
Additional context
No response
It looks like it's doing some update due to text wrapping? hard to say...
Yeah, there is a small shift of the line numbers happening, when it updates them on click.
This may be fixed with
- https://github.com/CodeEditApp/CodeEditTextView/issues/127