Bug 7012 - Paste does not replace entire selection made by the Shift key.
Summary: Paste does not replace entire selection made by the Shift key.
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-09-08 17:52 UTC by Peter Hultqvist
Modified: 2012-10-04 02:28 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 Peter Hultqvist 2012-09-08 17:52:09 UTC
When making a selection and pasting code form the clipboard some of the selected code is not erased but stays before the pasted code.

The following code is indented 12 spaces, <A,B,C> is markers for the explanation

<A>         <B>
            throw new NotImplementedException();<C>

Selecting the code and pasting "Console.WriteLine("Hello");" you can get:


"Exception();" is 12 characters correlating to the indentation.

The bug presents itself if the selection is done from <B> to <C> using the shift key and either the arrow keys or mouse click.

There is no bug if:
If selection is done by mouse drag
If a selection is made from <A> to <C>

When doing the selection from <B> it is visually displayed as if the selection start at <A>.
Comment 1 Mike Krüger 2012-09-10 09:25:33 UTC

good finding btw.
Comment 2 Peter Hultqvist 2012-09-28 13:16:21 UTC
I have tried the latest commit from the master branch and the bug is still there.

I cannot find any commit referring to this bug ID in any branch so perhaps the fix is not pushed yet?
Comment 3 Mike Krüger 2012-10-04 02:28:38 UTC
it's not fixed in master - we've an internal branch for monodevelop 3.0

It'll become the new master 'soon'