Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search results past scroll are obscured by the horizontal scroll bar #26204

Open
thomasheartman opened this issue Mar 6, 2025 · 0 comments
Open

Comments

@thomasheartman
Copy link
Contributor

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:

  1. Use file that has more lines than you can show on screen at once and where horizontal scrolling is activated
  2. Search for something that occurs below the current screen
  3. 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:
Image

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:
Image

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):

Image

On the other hand, if you do have a scroll bar, the line is completely obscured and not visible at all on the screen:

Image

Zed Version and System Specs

Zed: v0.177.3 (Zed Preview)
OS: macOS 15.3.1
Memory: 16 GiB
Architecture: aarch64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant