-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Description
Summary
The vertical_scroll_marging setting value is not properly respected in multibuffers because of the file header component, making it possible for the selected line to hide behind the file header.
Description
When using "vertical_scroll_margin": 0, using the editor: scroll cursor top action behaves as expected in a single buffer, placing the current line at the top of the editor, with no margin lines being used. However, when working with a multibuffer, Zed is not taking the File Header element into consideration, which takes up 2 Display Rows, so the editor: scroll cursor top action ends up placing the selected line behind the file header instead of right below it.
Steps to reproduce:
- Set
vertical_scroll_marginto0 - Perform a project search that, at least, produces 1 match
- Run the
editor: scroll cursor topaction (z tin vim mode) - Confirm that the selected line is now behind the file header
Expected Behavior: Zed takes the file header element into consideration when deciding the top row to use
Actual Behavior: Zed ignored the file header element and behaves as if a single buffer was being edited
settings.json
{
"vertical_scroll_margin": 0
}Screen Recording
CleanShot.2025-11-20.at.11.36.06.mp4
Zed Version and System Specs
Zed 0.212.7
9a06aea
If applicable, attach your Zed.log file to this issue.
No response