Skip to content

Conversation

@kaiwood
Copy link
Contributor

@kaiwood kaiwood commented Nov 16, 2016

Fixes #14485

A note for future reference: This PR leaves the current behaviour when selecting wrapped long lines intact / in the same state it is currently implemented (it handles wrapped lines as if they are real lines).

Although I disagree with the current implementation – selecting a line should select the whole real line, because otherwise you semantically cut a real line in half – the way moving up/down in the editor treats those wrapped lines as real lines anyway, so the implementation is at least consistent.

If the day comes where this movement behaviour is changed, expandLineSelection should be changed as well to stay consistent.

@mention-bot
Copy link

@kaiwood, thanks for your PR! By analyzing the history of the files in this pull request, we identified @alexandrudima, @Agetorp and @egamma to be potential reviewers.

@kaiwood
Copy link
Contributor Author

kaiwood commented Nov 16, 2016

Oh, and for completeness: ping @prashaantt (might be interested because he mentioned this after #950 was already merged)

@kaiwood kaiwood force-pushed the expand-line-selection branch from 8299d09 to 083dff8 Compare December 1, 2016 10:18
@alexdima alexdima added this to the February 2017 milestone Feb 20, 2017
@alexdima alexdima merged commit ce558b7 into microsoft:master Feb 20, 2017
@alexdima
Copy link
Member

alexdima commented Feb 20, 2017

Thank you! ❤️

@holynakamoto
Copy link

is there a way to select only the block of code on the line and not the newline?

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
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.

expandLineSelection should include trailing \n

5 participants