Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Use the correct upper bound when clamping the display line #480

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toehead2001
Copy link
Contributor

@toehead2001 toehead2001 commented May 9, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant