ScintillaNET icon indicating copy to clipboard operation
ScintillaNET copied to clipboard

Use the correct upper bound when clamping the display line

Open toehead2001 opened this issue 5 years ago • 0 comments

Currently, Lines.Count is used for the upper bound when clamping the displayLine in DocLineFromVisible().

That can be incorrect in the following:

  • It can be too low if Word Wrap is enabled.
  • It can be too high if lines are collapsed with Code Folding.

Instead, the actual visible line count should be calculated.

toehead2001 avatar May 09 '20 05:05 toehead2001