diff options
| author | Freddie Haddad <6127369+freddiehaddad@users.noreply.github.com> | 2026-08-22 12:48:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-22 19:48:16 +0000 |
| commit | 9b0bc7edef82200a7461332b75208a2160854226 (patch) | |
| tree | 9d65a3fe4d58f8b388ed86dff2e74f3073ee3f3f /runtime/lua/vim/range.lua | |
| parent | 7037e1effe9e3c98d43b36a287dd39e87eaf1bb2 (diff) | |
| download | rneovim-9b0bc7edef82200a7461332b75208a2160854226.tar.gz rneovim-9b0bc7edef82200a7461332b75208a2160854226.tar.bz2 rneovim-9b0bc7edef82200a7461332b75208a2160854226.zip | |
fix(plines): 'linebreak' ignores inline virtual text width #41227
Problem:
With 'linebreak', a word is moved to the next screen line when it does
not fit on the current one. The check measures only the buffer text, so
inline virtual text anchored inside the word is not counted. The word is
kept on a line it cannot fit, and the virtual text is split across the
screen line boundary.
Solution:
Count the width of inline virtual text anchored within the word, so the
check uses the width that is actually displayed.
Diffstat (limited to 'runtime/lua/vim/range.lua')
0 files changed, 0 insertions, 0 deletions