You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the search functionality and the current file has a horizontal scroll bar, if the next result is below the fold, part of the text is obscured by the horizontal scroll bar
Steps to trigger the problem:
Use file that has more lines than you can show on screen at once and where horizontal scrolling is activated
Search for something that occurs below the current screen
When going to the match below the screen, notice that the text is partially obscured by the scroll bar
Actual Behavior:
Using Zed's crates/theme/src/styles/colors.rs file with cursor at the start of the file and a narrow enough window to get the horizontal scroll bar, search for "ghost_element_disabled" or something else that occurs after the first window height.
The search result is partially obscured by the scroll bar, so it's hard to see what's on that line:
Expected Behavior:
The text shouldn't be obscured.
Here's what it looks like if there is no scroll bar. I'd expect the same thing placed just above the scroll bar when necessary:
Did you check your Zed.log to see if there is any relevant details there?
- Yes. Nothing in the log.
Possibly related issue
The "scrollCursorBottom" command (zb in Vim mode) has a similar issue, but a little worse. If there is no scroll bar, only part of the line is shown (similar to what happens when you have a scroll bar in the search):
On the other hand, if you do have a scroll bar, the line is completely obscured and not visible at all on the screen:
Summary
When using the search functionality and the current file has a horizontal scroll bar, if the next result is below the fold, part of the text is obscured by the horizontal scroll bar
Steps to trigger the problem:
Actual Behavior:
Using Zed's
crates/theme/src/styles/colors.rs
file with cursor at the start of the file and a narrow enough window to get the horizontal scroll bar, search for "ghost_element_disabled" or something else that occurs after the first window height.The search result is partially obscured by the scroll bar, so it's hard to see what's on that line:

Expected Behavior:
The text shouldn't be obscured.
Here's what it looks like if there is no scroll bar. I'd expect the same thing placed just above the scroll bar when necessary:

Did you check your Zed.log to see if there is any relevant details there?
- Yes. Nothing in the log.
Possibly related issue
The "scrollCursorBottom" command (
zb
in Vim mode) has a similar issue, but a little worse. If there is no scroll bar, only part of the line is shown (similar to what happens when you have a scroll bar in the search):On the other hand, if you do have a scroll bar, the line is completely obscured and not visible at all on the screen:
Zed Version and System Specs
Zed: v0.177.3 (Zed Preview)
OS: macOS 15.3.1
Memory: 16 GiB
Architecture: aarch64
The text was updated successfully, but these errors were encountered: