-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Git commit hard and soft wrap not respected #44748
Copy link
Copy link
Labels
area:editorFeedback for code editing, formatting, editor iterations, etcFeedback for code editing, formatting, editor iterations, etcarea:integrations/gitGit integration feedbackGit integration feedbackarea:settingsFeedback for preferences, configuration, etcFeedback for preferences, configuration, etcfrequency:alwaysBug that happens for everyone on every platform no matter how they use ZedBug that happens for everyone on every platform no matter how they use Zedpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsPapercuts, minor issues with a clear workaround, cosmetic bugs
Metadata
Metadata
Assignees
Labels
area:editorFeedback for code editing, formatting, editor iterations, etcFeedback for code editing, formatting, editor iterations, etcarea:integrations/gitGit integration feedbackGit integration feedbackarea:settingsFeedback for preferences, configuration, etcFeedback for preferences, configuration, etcfrequency:alwaysBug that happens for everyone on every platform no matter how they use ZedBug that happens for everyone on every platform no matter how they use Zedpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsPapercuts, minor issues with a clear workaround, cosmetic bugs
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
Status
No status
Reproduction steps
There are two closely related issues here regarding hard and soft wrapping in the editor and the git panel that do not behave as documented
preferred_line_length not respected in the editor
When using the editor to edit a commit message, the text soft wraps at the correct number of characters, but once I save the commit and check my git log, I can see that it did not hard wrap at that character count. The docs state
Reproduction
run git commit -ain your terminal. Zed opens with the ability to edit the commit messagegit login your terminal and you'll see that the commit message is not hard wrapped at 72 chars.soft_wrap not respected in the git panel
The docs state
But when set to
preferred_line_length, it still wraps toeditor_widthReproduction
Current vs. Expected behavior
Editor soft wraps correctly at 72 chars:
Actual commit message is not hard wrapped:
Sidebar Panel editor does not soft wrap:
But commit is correctly hard wrapped
Floating panel correctly soft wraps
Zed version and system specs
Zed: v0.211.6 (Zed)
OS: macOS 15.7.2
Memory: 64 GiB
Architecture: aarch64
Attach Zed log file
Relevant Zed settings
settings.json
Relevant Keymap
No response
(for AI issues) Model provider details
No response
If you are using WSL on Windows, what flavor of Linux are you using?
None