Skip to content

Single-file diff scrollbar no longer highlights changed regions #61255

Description

@anilzeybek

Reproduction steps

  1. Open a Git repository in Zed.
  2. Modify multiple regions of a file, ideally with enough distance between the changes to create separate diff hunks.
  3. Open the Git panel.
  4. Select the modified file to open its single-file diff.
  5. Leave the diff in the default changes-only view introduced by solo_diff_view: Show changes only by default #59958.
  6. Inspect the scrollbar.

This started after #59958 was merged.

Current vs. Expected behavior

Current behavior:

The scrollbar in the single-file diff no longer highlights the locations of changed regions. This makes it harder to understand how changes are distributed throughout the file and to navigate between them.

Expected behavior:

The scrollbar should continue to show markers for changed regions, including when the diff is displayed in changes-only mode, as it did before #59958.

As a related usability concern, the changes-only view is now always the default. My workflow generally requires the full-file view, so I must click “Show full file” every time I open a file. It would be useful to have a setting that controls whether single-file diffs initially open in changes-only or full-file view.

Related discussion: #59958 (comment)

Zed version and system specs

Zed: v1.12.0+preview.325.a655175721b871d2d5718241db9c535fa38dfc92 (Zed Preview)
OS: macOS 26.4.1
Memory: 36 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:needs triagetriage is not complete: no `area:*` label, or no `priority:*`/`frequency:*` for Bugs/Crashes

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions