Skip to content

fix(image): check cursor is on the right line in at_cursor#2802

Open
antinomie8 wants to merge 1 commit intofolke:mainfrom
antinomie8:main
Open

fix(image): check cursor is on the right line in at_cursor#2802
antinomie8 wants to merge 1 commit intofolke:mainfrom
antinomie8:main

Conversation

@antinomie8
Copy link
Copy Markdown

@antinomie8 antinomie8 commented Apr 4, 2026

Description

I noticed the floating images sometimes appeared even when my cursor was not on the image's line (see screenshot below). This is a trivial fix to ensure the cursor is on the same line as a single-line image treesitter node.

Screenshots

Currently, the image is shown when my cursor is above it:
image

@github-actions github-actions bot added image size/xs Extra small PR (<3 lines changed) labels Apr 4, 2026
@antinomie8 antinomie8 deleted the branch folke:main April 7, 2026 09:11
@antinomie8 antinomie8 closed this Apr 7, 2026
@antinomie8 antinomie8 deleted the main branch April 7, 2026 09:11
@antinomie8 antinomie8 reopened this Apr 7, 2026
@github-actions github-actions bot added terminal size/s Small PR (<10 lines changed) labels Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

image size/s Small PR (<10 lines changed) size/xs Extra small PR (<3 lines changed) terminal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant