-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Labels
editorFeedback for code editing, formatting, editor iterations, etcFeedback for code editing, formatting, editor iterations, etcregressionA bug that was introduced in a recent releaseA bug that was introduced in a recent releasereproducibleVerified steps to reproduce includedVerified steps to reproduce included
Description
Summary
In certain circumstances, saving a buffer incorrectly prevents redo
after save.
- In terminal
mkdir /tmp/issue31917
cd $_
echo 'foo' > foo.txt
zed . foo.txt:1:1
enter
,cms-s
,cmd-z
,cmd-s
,cmd-shift-z
Expected Behavior: Redo (cmd-shift-z) should restore the newline
Actual Behavior: Redo action does nothing
In other circumstances the redo buffer is correctly preserved (as expected). See comment below for one such case where Zed handles it correctly.
For cases when the buffer changes during format_on_save, see this feature request:
Settings
Reproducible with empty settings {}
No formatter.
Zed Version and System Specs
Zed: v0.188.5 (Zed)
OS: macOS 15.5.0
Memory: 16 GiB
Architecture: aarch64
domi413, Sija and lukedrive
Metadata
Metadata
Assignees
Labels
editorFeedback for code editing, formatting, editor iterations, etcFeedback for code editing, formatting, editor iterations, etcregressionA bug that was introduced in a recent releaseA bug that was introduced in a recent releasereproducibleVerified steps to reproduce includedVerified steps to reproduce included