diff options
| author | glepnir <glephunter@gmail.com> | 2026-01-21 14:17:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-21 14:17:44 +0800 |
| commit | c556972ae10d0e61337dbc804a4a0af4e390f98e (patch) | |
| tree | ae7b685d70da00da5000aa74b9cb27f412f0b634 /runtime/syntax/python.vim | |
| parent | 2c2203c04005495b4a6272eb178a90ce06580e9d (diff) | |
| download | rneovim-c556972ae10d0e61337dbc804a4a0af4e390f98e.tar.gz rneovim-c556972ae10d0e61337dbc804a4a0af4e390f98e.tar.bz2 rneovim-c556972ae10d0e61337dbc804a4a0af4e390f98e.zip | |
fix(api): auto-load buffers in nvim_buf_set_* operations (#35046)
fix(api): auto-load buffers in nvim_buf_set_* operations
Problem: Setting marks, lines, or text on unloaded buffers fails because
ml_line_count is not accurate until the buffer is loaded.
Solution: Add require_loaded_buffer() helper and use it in write operations
(nvim_buf_set_lines, nvim_buf_set_text, nvim_buf_set_mark). These now
auto-load buffers as needed.
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions