aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_stringbuffer.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-07-30 21:49:32 +0200
committerJustin M. Keyes <justinkz@gmail.com>2026-07-31 21:50:04 +0200
commit3e01dcddbe8b8a286c78af0a7a63d7412be8443f (patch)
tree8a17cbbc345f23823883362f7e2404b56725c681 /runtime/lua/vim/_stringbuffer.lua
parent726d1a92d243a8b7cb4b221d64e4523b7a89aaf4 (diff)
downloadrneovim-3e01dcddbe8b8a286c78af0a7a63d7412be8443f.tar.gz
rneovim-3e01dcddbe8b8a286c78af0a7a63d7412be8443f.tar.bz2
rneovim-3e01dcddbe8b8a286c78af0a7a63d7412be8443f.zip
refactor(options): memory management
Problem: Numerous callers have to manually check optval ownership (i.e. whether, and how, to release) via `is_callback_option`, `option_is_global_local`, etc. This is fragile, hard to use correctly; and if we introduce another optval variant in the future, we'll have to redo all of these careful checks and boilerplate again. Solution: Provide a unified system and use it everywhere: optval_free_owned optval_is_owned optval_own
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions