Bug 3235 - Copy-Paste in the text editor adds an additional character at the end of the string
Summary: Copy-Paste in the text editor adds an additional character at the end of the ...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 2.8.2
Hardware: Macintosh Other
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-02-06 09:17 UTC by qdnews
Modified: 2012-02-13 11:26 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 DOWNSTREAM

Description qdnews 2012-02-06 09:17:02 UTC
Description of Problem:
 Copy-Paste in the text editor of Monodevelop 2.8.2 on MacOSX adds an additional character at the end of the string. The additional character is a copy of the character that follow the copied string.

Steps to reproduce the problem:
1. Copy
2. Paste !


Actual Results:
 Example:
 in the following code, if I copy string1 and paste it between string2 and string3, I get this:

 Before:
 string1
 string2string3

 After:
 string1
 string2string1sstring3

 Please note the additional "s"



Expected Results:
 I should have got this:
 string1
 string2string1string3


How often does this happen? 
 Always

Additional Information:
 I'm using the monodevelop version that is bundled with Unity 3.5 beta
 I'm on MacOSX 10.6.8 (this bug does not appear on Windows 7 64bits)
Comment 1 qdnews 2012-02-06 09:24:10 UTC
I should add that this behavior happens when editing uniscript code (sort of javascript for Unity 3D), but not when editing C# code
Comment 3 Mikayla Hutchinson [MSFT] 2012-02-06 13:09:49 UTC
If this only happens for JS but not C#, it's likely a problem in Unity's JS language addin, probably the autoformatter.
Comment 4 qdnews 2012-02-13 11:26:01 UTC
OK, I finally manage to get rid of this behaviour!

I just unchecked the "Enable on the fly code formatting" box in the
MonoDevelop-Unity menu -> Preferences... -> Text Editor -> Behaviour