CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

🐞 Ruler shows wrong line numbers when re-rendering

Open Eliulm opened this issue 2 years ago • 2 comments

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

  1. Open any file in a small window instance, which causes multiple line breaks.
  2. 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

Eliulm avatar Jan 20 '23 20:01 Eliulm

It looks like it's doing some update due to text wrapping? hard to say...

ben-p-commits avatar Jan 23 '23 20:01 ben-p-commits

Yeah, there is a small shift of the line numbers happening, when it updates them on click.

Eliulm avatar Jan 23 '23 21:01 Eliulm

This may be fixed with

  • https://github.com/CodeEditApp/CodeEditTextView/issues/127

austincondiff avatar Feb 16 '23 22:02 austincondiff