Skip to content

Fix unified diff final-line painting and read-only overlays - #3043

Open
tobiasmelcher wants to merge 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:d031119/unified-diff-paint-and-overlay-fixes
Open

tobiasmelcher wants to merge 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:d031119/unified-diff-paint-and-overlay-fixes

Conversation

@tobiasmelcher

Copy link
Copy Markdown
Contributor

Painting a changed final line without a newline could throw an index-out-of-bounds exception because its end offset is outside the character range accepted by StyledText.getTextBounds. Use the caret location at that offset so the diff background and border can still be painted.

Make the click-through code-mining viewer read-only while retaining text selection and copying. Add regression coverage for final-line painting and attempts to edit the overlay.

Use the caret location when painting the end of a final line without a delimiter to avoid an out-of-bounds StyledText range. Make click-through mining overlays read-only while retaining text selection and copying.
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