Skip to content

bracketmatch: fix position on wrapped lines#38

Merged
jgmdev merged 1 commit intopragtical:masterfrom
loremdifr:master
Apr 2, 2026
Merged

bracketmatch: fix position on wrapped lines#38
jgmdev merged 1 commit intopragtical:masterfrom
loremdifr:master

Conversation

@loremdifr
Copy link
Copy Markdown
Contributor

This PR fixes the incorrect position of characters and decorations in the bracketmatch plugin when lines are wrapped by something like the linewrapping plugin:

bracketmatch_fix2.mp4

The problem was that the plugin was trying to compute the screen position of the decorations and characters on its own, with no awareness of what the linewrapping plugin was doing. Now it uses DocView:get_line_screen_position instead, which accurately places the decorations where they're supposed to go.

I made sure it works with all the different plugin settings as well (frame, underline, block, etc).

@jgmdev
Copy link
Copy Markdown
Member

jgmdev commented Apr 2, 2026

Tested too and looks good, thanks!

@ahamedjobayer081-spec
Copy link
Copy Markdown

#38

Copy link
Copy Markdown

@ahamedjobayer081-spec ahamedjobayer081-spec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#38 Fixes #36

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.

3 participants