diff options
| author | bfredl <bjorn.linse@gmail.com> | 2024-02-11 15:46:14 +0100 |
|---|---|---|
| committer | bfredl <bjorn.linse@gmail.com> | 2024-02-13 11:54:44 +0100 |
| commit | 0353dd3029f9ce31c3894530385443a90f6677ee (patch) | |
| tree | fa288427461ee2c1ce1c271d01a760977a161bf5 /runtime | |
| parent | 89135cff030b06f60cd596a9ae81cd9583987517 (diff) | |
| download | rneovim-0353dd3029f9ce31c3894530385443a90f6677ee.tar.gz rneovim-0353dd3029f9ce31c3894530385443a90f6677ee.tar.bz2 rneovim-0353dd3029f9ce31c3894530385443a90f6677ee.zip | |
refactor(lua): use Arena when converting from lua stack to API args
and for return value of nlua_exec/nlua_call_ref, as this uses
the same family of functions.
NB: the handling of luaref:s is a bit of a mess.
add api_luarefs_free_XX functions as a stop-gap as refactoring
luarefs is a can of worms for another PR:s.
as a minor feature/bug-fix, nvim_buf_call and nvim_win_call now preserves
arbitrary return values.
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/doc/api.txt | 6 | ||||
| -rw-r--r-- | runtime/doc/news.txt | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 95bcb31db9..85b3dffb4b 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -2183,8 +2183,7 @@ nvim_buf_call({buffer}, {fun}) *nvim_buf_call()* only) Return: ~ - Return value of function. NB: will deepcopy Lua values currently, use - upvalues to send Lua references in and out. + Return value of function. nvim_buf_del_keymap({buffer}, {mode}, {lhs}) *nvim_buf_del_keymap()* Unmaps a buffer-local |mapping| for the given mode. @@ -2879,8 +2878,7 @@ nvim_win_call({window}, {fun}) *nvim_win_call()* only) Return: ~ - Return value of function. NB: will deepcopy Lua values currently, use - upvalues to send Lua references in and out. + Return value of function. See also: ~ • |win_execute()| diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 573a9f43b8..9891926632 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -422,6 +422,8 @@ The following changes to existing APIs or features add new behavior. • |--startuptime| reports the startup times for both processes (TUI + server) as separate sections. +• |nvim_buf_call()| and |nvim_win_call()| now preserves any return value (NB: not multiple return values) + ============================================================================== REMOVED FEATURES *news-removed* |