Bug 5197 - copy-and-paste duplicates the first character of the destination line
Summary: copy-and-paste duplicates the first character of the destination line
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 2.6
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-05-21 02:19 UTC by jwatte
Modified: 2012-05-21 02:43 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 jwatte 2012-05-21 02:19:47 UTC
Bug https://bugzilla.xamarin.com/show_bug.cgi?id=3235 mentions something that is dismissed as a "downstream bug in the Unity JS plugin."
That's not at all the case -- the bug is reproducible in plain MonoDevelop, at least when editing C++ code. The trick is to have "auto-format code" turned on.

Reproduction is simple:
1) Type:

2) Put the cursor before "a" and press shift-linedown to select an entire line

3) Copy

4) Put the cursor before "i"

5) Paste

You will now see that the "ijkl" line starts with TWO "i" characters.

Apparently this happens on MacOS X in 2.8, and it also happens in Linux in 2.6 (which is the version shipped with Mint 12, which is the current distribution -- you might want to poke them about updating...)
At a minimum, please turn on auto-reformatting of code and try this experiment in 3.0 to see if it's still there. My guess is it is.
Comment 1 Mike Krüger 2012-05-21 02:42:31 UTC
Works in master/3.0.
Comment 2 Mike Krüger 2012-05-21 02:43:18 UTC
(At least tested in master)