Wrong behavior when pasting rich text and then undoing in TextEdit

Number:rdar://9977463 Date Originated:18-Aug-2011 02:18 PM
Status:Open Resolved:
Product:OS X Product Version:OS X 10.6.8 (10K549)
Classification:Serious Bug Reproducible:Always
Summary: Pasting rich text into a new TextEdit document isn't fully undone when invoking Undo.

Steps to Reproduce:
1. Open a new TextEdit document.
2. Copy some rich text from a webpage with obviously styled text, such as http://eggfreckles.net/notes/listening-to-less-music/, from Safari
3. Paste that text into TextEdit.
4. Undo (Edit->Undo or Command-Z).
5. Type new text.

Expected Results:
The new text will be in the default text style of the document.

Actual Results:
The new text picks up the style of the pasted-and-undone text.

I've tested in Snow Leopard 10.6.8/10K549, and this bug exists there as well.

I haven't tested copying text from sources other than Safari.


The egg freckles link in the original bug is a 404 now. Try something from the main page: http://eggfreckles.net

Apple asked for system logs, but never followed up.

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!