Bug 6381 - format selection skips the first line
Summary: format selection skips the first line
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 3.0.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-08-03 14:01 UTC by Chris Toshok
Modified: 2012-10-10 02:29 UTC (History)
1 user (show)

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:

Description Chris Toshok 2012-08-03 14:01:45 UTC
select a range of text, format selection, first line isn't changed (although it's most definitely part of the selection).
Comment 1 Mike Krüger 2012-08-10 04:00:54 UTC
Seems to work for me - can you give me a more concrete use case ?

btw. which version of monodevelop are you using ?

I did: http://screencast.com/t/9zAu8RF3GqC
Comment 2 Chris Toshok 2012-08-10 11:11:25 UTC
the formatting operation begins at the start of the text on the first line, so it reformats internal spacing as your video shows, but it doesn't move the text on the first line to the place it should be:



1) the selection is pretty much the same as yours - the lines all start where they're supposed to, and just have differences in internal spacing
2) shift the selected text to the left and reformat the selection - first line isn't indented properly.
3) select the entire line of the first line, not just starting at the text - first line isn't indented properly.

the bugs in 2) and 3) also exist if you shift the selection to the right instead of the left.

Comment 3 Mike Krüger 2012-10-10 02:29:21 UTC
I think that's the expected behavior - just change the formatting in the selection - and not outside.

In this case the indentation is outside.