[REGRESSION] Multi-click selection broken in main #12974

Closed
opened 2026-01-31 03:30:23 +00:00 by claunia · 10 comments
Owner

Originally created by @zadjii-msft on GitHub (Mar 11, 2021).

Originally assigned to: @Don-Vito on GitHub.

IN RETROSPECT: I don't think this is right. We might have lost the case where there's no selection, and you double/triple click on a word

@Don-Vito as an fyi

Originally posted by @zadjii-msft in https://github.com/microsoft/terminal/pull/9403#r592604796

Originally created by @zadjii-msft on GitHub (Mar 11, 2021). Originally assigned to: @Don-Vito on GitHub. IN RETROSPECT: I don't think this is right. We might have lost the case where there's no selection, and you double/triple click on a word @Don-Vito as an fyi _Originally posted by @zadjii-msft in https://github.com/microsoft/terminal/pull/9403#r592604796_
Author
Owner

@DHowett commented on GitHub (Mar 11, 2021):

I may stage a revert for this until we can get it in and get it right.

I'd like to see manual test runs for the following scenarios:

  • single click = no selection
  • single click and drag = selection starting from first point
  • single click in unfocused pane and drag = focus pane, selection starting from first point
  • double-click = selects a whole word
  • triple-click = selects a whole line
  • double-click and drag = selects a whole word, drag selects whole words
  • triple-click and drag = selects a whole line, drag selects whole lines
  • Shift single-click = defines start point
  • second Shift single-click = defines end point
  • Shift double-click = selects entire word
  • Shift triple-click = selects entire line
  • Shift double-click and drag = selects entire word, drag selects whole words
  • Shift triple-click and drag = selects entire line, drag selects whole lines
@DHowett commented on GitHub (Mar 11, 2021): I may stage a revert for this until we can get it in and get it right. I'd like to see manual test runs for the following scenarios: * [ ] single click = no selection * [ ] single click and drag = selection starting from first point * [ ] single click in unfocused pane and drag = focus pane, selection starting from first point * [ ] double-click = selects a whole word * [ ] triple-click = selects a whole line * [ ] double-click and drag = selects a whole word, drag selects whole words * [ ] triple-click and drag = selects a whole line, drag selects whole lines * [ ] <kbd>Shift</kbd> single-click = defines start point * [ ] second <kbd>Shift</kbd> single-click = defines end point * [ ] <kbd>Shift</kbd> double-click = selects entire word * [ ] <kbd>Shift</kbd> triple-click = selects entire line * [ ] <kbd>Shift</kbd> double-click and drag = selects entire word, drag selects whole words * [ ] <kbd>Shift</kbd> triple-click and drag = selects entire line, drag selects whole lines
Author
Owner

@Don-Vito commented on GitHub (Mar 11, 2021):

@DHowett, @zadjii-msft - can you explain what is broken? I am quite sure I tested this case.

Also I am afraid that the selection was more broken before this fix.

@Don-Vito commented on GitHub (Mar 11, 2021): @DHowett, @zadjii-msft - can you explain what is broken? I am quite sure I tested this case. Also I am afraid that the selection was more broken before this fix.
Author
Owner

@DHowett commented on GitHub (Mar 11, 2021):

So, when I double-click select something on main, I get ... no selection :(

@DHowett commented on GitHub (Mar 11, 2021): So, when I double-click select something on `main`, I get ... no selection :(
Author
Owner

@Don-Vito commented on GitHub (Mar 11, 2021):

So, when I double-click select something on main, I get ... no selection :(

OK. I see. I will fix it today. and also run all the tests you mentioned.

The previous version is not working with shift+double-click, so it is equally broken.

Please assign to me

@Don-Vito commented on GitHub (Mar 11, 2021): > > > So, when I double-click select something on `main`, I get ... no selection :( OK. I see. I will fix it today. and also run all the tests you mentioned. The previous version is not working with shift+double-click, so it is equally broken. Please assign to me
Author
Owner

@DHowett commented on GitHub (Mar 11, 2021):

Thanks 😄

@DHowett commented on GitHub (Mar 11, 2021): Thanks :smile:
Author
Owner

@Don-Vito commented on GitHub (Mar 11, 2021):

I mean it should be a one-liner. I simply forgot that shift is not required for multi-selection :)

@Don-Vito commented on GitHub (Mar 11, 2021): I mean it should be a one-liner. I simply forgot that shift is not required for multi-selection :)
Author
Owner

@Don-Vito commented on GitHub (Mar 11, 2021):

Sorry for missing the scenario without shift 👼
Wondering if there is a good way to add UT for this one

@Don-Vito commented on GitHub (Mar 11, 2021): Sorry for missing the scenario without shift 👼 Wondering if there is a good way to add UT for this one
Author
Owner

@zadjii-msft commented on GitHub (Mar 11, 2021):

Yea the unittesting scenario for the TerminalControl binary is awful. Fixing that is what I'm actually working on today, because we've got to do something about it.

@zadjii-msft commented on GitHub (Mar 11, 2021): Yea the unittesting scenario for the TerminalControl binary is awful. Fixing that is what I'm actually working on today, because we've _got to do something about it_.
Author
Owner

@ghost commented on GitHub (Apr 14, 2021):

:tada:This issue was addressed in #9455, which has now been successfully released as Windows Terminal v1.7.1033.0.🎉

Handy links:

@ghost commented on GitHub (Apr 14, 2021): :tada:This issue was addressed in #9455, which has now been successfully released as `Windows Terminal v1.7.1033.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.7.1033.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Apr 14, 2021):

:tada:This issue was addressed in #9455, which has now been successfully released as Windows Terminal Preview v1.8.1032.0.🎉

Handy links:

@ghost commented on GitHub (Apr 14, 2021): :tada:This issue was addressed in #9455, which has now been successfully released as `Windows Terminal Preview v1.8.1032.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.8.1032.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12974