Skip to content

fix(chunk): add virt_text_repeat_linebreak to fix holes on wrapped lines#178

Open
parkers0405 wants to merge 1 commit into
shellRaining:mainfrom
parkers0405:fix/wrapped-line-holes
Open

fix(chunk): add virt_text_repeat_linebreak to fix holes on wrapped lines#178
parkers0405 wants to merge 1 commit into
shellRaining:mainfrom
parkers0405:fix/wrapped-line-holes

Conversation

@parkers0405
Copy link
Copy Markdown

Summary

Fixes chunk indicator gaps/holes when lines are soft-wrapped.

Problem

When wrap is enabled, the vertical chunk indicator shows gaps on wrapped line continuations:

wrapped-line-holes

This happens because the virtual text overlay doesn't repeat on soft line breaks by default.

Solution

Add virt_text_repeat_linebreak = true to the extmark options in row_opts. This tells Neovim to repeat the virtual text on soft-wrapped line continuations.

See: https://neovim.io/doc/user/api.html#nvim_buf_set_extmark()

virt_text_repeat_linebreak: if true, the virtual text will be repeated on wrapped lines

Credits

Fixes #136
Fixes #161

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes chunk indicator gaps when wrap is enabled by ensuring the virtual text used for the vertical chunk guide is repeated across soft-wrapped screen lines.

Changes:

  • Set virt_text_repeat_linebreak = true in the extmark options used by the chunk renderer to avoid holes on wrapped-line continuations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Chunk doesnt render correctly Wrapped Line virtural text consistency

2 participants