You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
cmd-l in multi-line selection doesn't select beginning of first line #3624
When you you have no selection, with a cursor in the middle of a line, cmd-l selects the entire line, from the left side of the editor to the right side, including the ending newline.
When you have a selection that spans a few lines, cmd-l selects the end of the last line, but doesn't select the beginning of the first line. I expected it to select the beginning of the first line too.
Some more inconsistent behavior here: if you click mid-way through a line, then shift+down and cmd+l, you get the behavior @colllin describes. If you do shift+up then cmd+l, the beginning of the first line is selected, but not the end of the last line. So, what seems to be going on is that cmd+l is adding the line containing the cursor to the selection, instead of adding all lines containing selected text to the selection.
Weirdly, if you click and drag from midway through a line to midway through the line above then cmd+l, it selects all of the upper line but deselects the lower line entirely.
Also happy to look into this and come up with a PR if someone can suggest where to look.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
winstliu commentedon Apr 13, 2015
Still reproducible in latest master.
colllin commentedon Apr 14, 2015
I'd be willing to look into it if someone could point me in the right direction.
billyjanitsch commentedon Jun 22, 2015
Some more inconsistent behavior here: if you click mid-way through a line, then shift+down and cmd+l, you get the behavior @colllin describes. If you do shift+up then cmd+l, the beginning of the first line is selected, but not the end of the last line. So, what seems to be going on is that cmd+l is adding the line containing the cursor to the selection, instead of adding all lines containing selected text to the selection.
Weirdly, if you click and drag from midway through a line to midway through the line above then cmd+l, it selects all of the upper line but deselects the lower line entirely.
Also happy to look into this and come up with a PR if someone can suggest where to look.
jeancroy commentedon Sep 2, 2015
OK I believe the problem is here
called by this
IE
maxbrunsfeld commentedon Sep 3, 2015
Fixed via #8646.
colllin commentedon Sep 3, 2015
YES! 👏 @jeancroy
billyjanitsch commentedon Sep 3, 2015
Thank you so much @jeancroy!
bronson commentedon Sep 3, 2015
Very nice! 🌈 @jeancroy
lock commentedon Jan 20, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!