diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2025-12-25 02:38:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-25 15:38:45 +0800 |
| commit | 60a0e3d0a0f73ea271eb3e3e98366a6d30af3456 (patch) | |
| tree | ebd410ae6cc39d9d42669355c639bcfe5fff4263 /runtime/lua/vim/_core/stringbuffer.lua | |
| parent | 1cde71233fcf972c5a4ddd155278af299527bb9f (diff) | |
vim-patch:9.1.0151: ml_get_buf_len() does not consider text properties (#37094)
Problem: ml_get_buf_len() does not consider text properties
(zeertzj)
Solution: Store text length excluding text properties length
in addition in the memline
related vim/vim#14123
closes: vim/vim#14133
https://github.com/vim/vim/commit/a72d1be5a9984709fc66f460b443ad4a38506113
--------
Replace ml_line_len with ml_line_textlen to be explicit
that Nvim doesn't currently support Vim's text properties
and Nvim doesn't support lines with "ambiguous" length.
--------
vim-patch:9.1.0153: Text properties corrupted with fo+=aw and backspace
Problem: Text properties corrupted with fo+=aw and backspace
Solution: Allocate line and move text properties
(zeertzjq)
closes: vim/vim#14147
https://github.com/vim/vim/commit/7ac1145fbebb66dfee325dc5265309877d941c4e
vim-patch:9.1.0163: Calling STRLEN() to compute ml_line_textlen when not needed
Problem: Calling STRLEN() to compute ml_line_textlen when not needed.
Solution: Use 0 when STRLEN() will be required and call STRLEN() later.
(zeertzjq)
closes: vim/vim#14155
https://github.com/vim/vim/commit/82e079df814f7372e9579450730062b205449efa
Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'runtime/lua/vim/_core/stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions
