Cannot save empty file because ensure_final_newline_on_save
adds a newline
#22474
Closed
1 task done
Labels
Check for existing issues
Describe the bug / provide steps to reproduce it
With
ensure_final_newline_on_save
enabled (which is by default), Zed adds a newline to empty files, making it impossible to save an actually empty file.This is technically correct, as an empty file doesn't have a trailing newline...but you probably never want this behaviour.
Zed Version and System Specs
Zed: v0.166.1 (Zed)
OS: macOS 15.2.0
Memory: 16 GiB
Architecture: x86_64
If applicable, add screenshots or screencasts of the incorrect state / behavior
No response
If applicable, attach your Zed.log file to this issue.
No response
The text was updated successfully, but these errors were encountered: