Bug 5067 - Selection does not respect virtual space
Summary: Selection does not respect virtual space
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Mac OS
: Low normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-05-14 14:10 UTC by Mikayla Hutchinson [MSFT]
Modified: 2012-05-16 15:32 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Mikayla Hutchinson [MSFT] 2012-05-14 14:10:22 UTC
Shift-right selection does not respect virtual space. This makes some things frustrating, e.g. ://screencast.com/t/cxENWbpLrhHV
Comment 1 Mike Krüger 2012-05-15 01:34:09 UTC
What do you propose ?

The thing is that the virtual indent is not there - what should selection do ?

The selection atm works correct - that is what is selected. If the virtual selection would be selected it's wrong - because that's not part of the copy buffer.
Comment 2 Mikayla Hutchinson [MSFT] 2012-05-15 14:56:27 UTC
Good question, I don't know. It just seems strange the way it behaves currently. Note that I was selecting in the *other* direction, so it looked like the selection jumped backwards.
Comment 3 Mike Krüger 2012-05-15 15:12:17 UTC
We could render a virtual selection ... would look like the indent isn't virtual there.

But cut/copy won't include the virtual chars.
Comment 4 Mike Krüger 2012-05-16 08:12:57 UTC
I fixed the behaviour - that's really frustrating, I agree with that.

I need to think a bit about the display, maybe the approach now is better - at least we show what's really selected.
Comment 5 Mikayla Hutchinson [MSFT] 2012-05-16 15:32:35 UTC
Yup, I think the fix is reasonable. I suppose in some causes it could lead to introduction of trailing whitespace, but we can fix that if we get concrete use cases :)