# Full English Translation (Bug Report Standard Tone)
Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When I quote code into the input box, type some text afterward, then paste another copied block of text into the box, undoing via keyboard shortcut deletes earlier text incorrectly. The pasted content cannot be undone properly, and the undo sequence is out of order. This issue occurs on the latest macOS system and the newest Cursor version, as well as Cursor’s latest Agents feature on Windows chat input boxes.
Steps to Reproduce
- In the input box, use Command+L to insert quoted code
- Type descriptive text after the code snippet
- Paste an additional copied block of code into the input field
- Press Command + Z to undo
Result: The middle content gets removed first, newly added text undoes in the wrong chronological order
Operating System
macOS
Version Information
macOS: 26.5.2 (25F84)
Cursor Version: 3.9.16
VS Code Extension API: 1.105.1
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80
Build Timestamp: 2026-06-27T06:41:01.941Z
UI Layout: glass
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS Platform: Darwin arm64 25.5.0
Does this stop you from using Cursor
Sometimes — I am still able to use Cursor most of the time