Skip to content

fix(editor): reveal image and video marks on the cursor line - #191

Merged
gnacho merged 1 commit into
masterfrom
fix/185-reveal-image-marks
Nov 13, 2026
Merged

gnacho merged 1 commit into
masterfrom
fix/185-reveal-image-marks

Conversation

@gnacho

@gnacho gnacho commented Nov 13, 2026

Copy link
Copy Markdown
Owner

With the cursor on the line of a block image or a video card, the view skips the ornament for that line (it should) but the mark itself stayed shrunk to about a pixel, so the line looked empty while imagegap kept reserving its 144 px below it. Nothing to read, nothing to click.

The decoration pass now knows when the cursor sits on a block image or video line. In that case it reveals the marks of that line and skips the imagegap/youtubegap span, so the reservation collapses and the raw ![alt](path) sits where the picture was. Moving the cursor away brings the ornament back.

This follows the constraint from gtk_hides_invisible_safely(): nothing is hidden or unhidden, the mark is shown by not shrinking it.

Tests: tests/image_reveal.rs (ignored, runs under xvfb) checks the tags for both cases, image and video, with the cursor inside and outside the line. Verified red before the fix (imagegap plus syn_shrink) and green after.

Closes #185.

@gnacho
gnacho merged commit 70ea308 into master Nov 13, 2026
3 checks passed
@gnacho
gnacho deleted the fix/185-reveal-image-marks branch November 13, 2026 14:28
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.

Reveal the raw source on the cursor line

1 participant