Skip to content

Conversation

@MattIrv
Copy link
Contributor

@MattIrv MattIrv commented Jul 18, 2017

Our line selection logic was wrong, meaning that every selection included an extra character unless it was already at the end of a line.

Closes Microsoft/carbon#1379. See that issue for more details.

@MattIrv MattIrv requested review from abist, benrr101 and huypha July 18, 2017 18:23
@msftclas
Copy link

@MattIrv,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Copy link
Contributor

@benrr101 benrr101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well dang. I thought I got that all working correctly.
This code was a mess to begin with since it took the 0-indexed positions, converted them to 1-indexed, then back to 0-indexed to do string manipulation. I ripped out the 1-indexed stuff but it still needed some off-by-1 fixes b/c of how python does range indexing.

Good catch. Thank you for fixing my mistakes 😉

@MattIrv
Copy link
Contributor Author

MattIrv commented Jul 18, 2017

Automatically kicked off a Jenkins build for your branch fix/selectionExtraCharacter

1d5f889: http://xplat-build-vm:8080/job/pgtoolsservice_custom-branch/175/
51e4317: http://xplat-build-vm:8080/job/pgtoolsservice_custom-branch/177/

Build status: success
Tests passing: 283
Coverage: 92.55%

@MattIrv MattIrv merged commit 9bd95b9 into master Jul 18, 2017
@MattIrv MattIrv deleted the fix/selectionExtraCharacter branch July 18, 2017 19:40
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.

4 participants