Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WrappedLine calculateLineCount and modelToView when dealing with certain lines containing tabs. #314

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

Conversation

mike-smith-portswigger
Copy link
Contributor

No description provided.

@mike-smith-portswigger
Copy link
Contributor Author

The existing code for calculateLineCount() and modelToView() would incorrectly update x0 (left offset in pixels) for each physical line, which resulted in tabs being expanded incorrectly. This patch fixes the behaviour. Tests have been added to reproduce the circumstances of this issue and to test the general operation of these methods plus viewToModel().

@mike-smith-portswigger mike-smith-portswigger deleted the linecountandmodeltoviewfix branch September 9, 2019 11:14
@bobbylight
Copy link
Owner

@mike-smith-portswigger, any reason you closed this PR?

@mike-smith-portswigger
Copy link
Contributor Author

mike-smith-portswigger commented Sep 11, 2019 via email

@mike-smith-portswigger mike-smith-portswigger restored the linecountandmodeltoviewfix branch September 16, 2019 10:59
@coveralls
Copy link

Coverage Status

Coverage increased (+1.1%) to 46.857% when pulling c7f7714 on PortSwigger:linecountandmodeltoviewfix into 7492e52 on bobbylight:master.

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

Successfully merging this pull request may close these issues.

None yet

4 participants