Skip to content

Fix unified diff code mining layout and footer painting - #3068

Merged
tobiasmelcher merged 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:unified-diff-mining-layout-fixes
Nov 11, 2026
Merged

tobiasmelcher merged 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:unified-diff-mining-layout-fixes

Conversation

@tobiasmelcher

Copy link
Copy Markdown
Contributor

Reverting a hunk removed its line header without marking it deleted, so the editor could keep the space reserved for that header. Mark the annotations deleted before removing them so the space is cleared and the remaining hunk stays aligned.

Footer painting could also throw a NullPointerException when disposal cleared its cached rectangle during a draw. Drawing and disposal now share a lock, and border painting uses the height measured by the current draw call. Regression tests cover the layout after reverting a hunk and disposal during plain and styled footer painting.

Mark resolved annotations deleted before removing them so the painter clears their reserved line height. Synchronize footer drawing and disposal, and use the measured height to prevent cache invalidation from causing a null pointer exception.
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   42m 15s ⏱️ + 4m 28s
 5 022 tests +2   5 000 ✅ +2   22 💤 ±0  0 ❌ ±0 
12 957 runs  +6  12 803 ✅ +6  154 💤 ±0  0 ❌ ±0 

Results for commit bca175d. ± Comparison against base commit e0f2183.

@tobiasmelcher
tobiasmelcher merged commit 6c1a527 into eclipse-platform:master Nov 11, 2026
18 checks passed
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

Successfully merging this pull request may close these issues.

1 participant