Undo stack is broken with fold selected ranges
Describe the bug
Undoing a folding operation actually undos more actions in the undo stack than expected - see example below.
To reproduce
- Type in
{foo} - Remove the last
o(navigate cursor there and backspace) i.e. we now have{fo} - Fold the range by selecting all the text and then choosing the option from Command Palette - we see
...as expected - Press CMD-Z
- You'll see
{foo}pop up again - not expected!
Expected behavior
We expect {fo} to show up and for only the fold operation to be undone.
Screenshots
No response
Operating system
MacOS
Operating system and version
Ventura 13.2.1
Shell Version
zsh 5.8.1 (x86_64-apple-darwin22.0)
Current Warp version
No response
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
No response
Additional context
No response
Does this block you from using Warp daily?
No
Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)
N/A, the issue only applies to a Warp specific feature. (i.e. Warp AI, Workflows)
Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e
None
To anyone else facing this issue, please add a 👍 to the original post at the top or comment with your details, and subscribe if you'd like to be notified.
Thanks for the report! We need a bit more information before we can triage this issue.
Could you try reproducing this on the latest version of Warp? If it still happens, please share logs and a screenshot or short video if you can.
If there's no activity on this issue after 3 business days, we'll close it out to help keep the issue tracker clean.
This is part of an automated backlog review and may be inaccurate. If you believe this assessment is wrong, please let us know.