Skip to content

fix: expanded hunk breaks editor layout — gutter overlaps code content #698

@batonogov

Description

@batonogov

Summary

When inline diff hunk is expanded, the gutter (line numbers + diff markers) overlaps with the code content area. All code lines appear cropped on the left — only the right portion of each line is visible. The hunk toolbar floats over the gutter area.

Screenshot

Full editor view shows line numbers overlapping code text. The entire left side of code content is hidden behind the gutter.

Motivation

Editor is unreadable when hunk is expanded — blocks usage of the inline diff feature.

Implementation ideas

  • The expanded hunk insertion likely doesn't account for gutter width recalculation
  • NSTextContainer text inset may need updating when hunk expands
  • Or the overlay view blocks the text area

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeditorCode editor relatedpriority: highCritical priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions