Justin M. Keyes
ff3d04b75b
refactor(api): VALIDATE macros #22256
...
- VALIDATE() takes a format string
- deduplicate check_string_array
- VALIDATE_RANGE
- validate UI args
2023-02-14 05:07:38 -08:00
dundargoc
df646572c5
docs: fix typos ( #20394 )
...
Co-authored-by: Raphael <glephunter@gmail.com >
Co-authored-by: smjonas <jonas.strittmatter@gmx.de >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-09-30 09:53:52 +02:00
Sean Dewar
f6cc604af2
fix(api): convert blob to NUL-terminated API string
...
Looks like I did an oopsie; although API strings carry a size field, they should
still be usable as C-strings! (even though they may contain embedded NULs)
2022-02-26 14:18:34 +00:00
dundargoc
297ff97647
fix(lua): stricter type check when calling API function ( #16745 )
...
Solves #13651
Co-authored-by: Gregory Anders <greg@gpanders.com >
2022-01-03 08:00:50 -07:00
Gregory Anders
eff11b3c3f
feat(api): implement nvim_{add,del}_user_command
...
Add support for adding and removing custom user commands with the Nvim
API.
2021-12-28 14:08:44 -07:00
Gregory Anders
03b805aee6
feat(lua): enable stack traces in error output ( #16228 )
2021-11-06 08:26:10 -06:00
virchau13
6064376f6d
fix(api): check type in nlua_pop_keydict ( #15940 )
2021-10-08 18:22:33 +08:00
Sean Dewar
de9df825d5
feat(decode_string): decode binary string with NULs to Blob
...
Strings that previously decoded into a msgpack special for representing
BINs with NULs now convert to Blobs. It shouldn't be possible to decode
into this special anymore after this change?
Notably, Lua strings with NULs now convert to Blobs when passed to VimL.
2021-09-15 21:19:30 +01:00
Sean Dewar
312c783d81
feat(api): convert Blobs to API strings
...
Note that these are not NUL-terminated; the API supports this.
2021-09-15 21:19:29 +01:00
Daniel Hahler
3d1531aee5
API: include invalid buffer/window/tabpage in error message ( #11712 )
2020-01-14 09:21:10 +01:00
Björn Linse
dab40f43b1
Add v:lua.func() vimL syntax for calling lua
...
Also simplify error messages when calling lua from vimL.
2019-11-16 22:33:21 +01:00
ZyX
5b6d598ca8
functests: Fix tests
2017-05-08 21:21:03 +03:00
ZyX
09f849b600
Merge branch 'master' into luaviml'/lua
2017-05-08 15:43:45 +03:00
ZyX
78082e8d3e
functests: Check whether it is a problem with an array
2017-04-11 11:05:19 +03:00
ZyX
acd9ed8d83
functests: Add another check for the similar transformation
...
Reasoning is majorly the same: check whether lua has bug or API function has
bug, but on the other side: previous commit is checking whether similar bug when
using API via msgpack RPC, this commit is checking whether another API function
used via lua bindings triggers the same bug. Should additionally give a hint
about which lua code contains a bug.
2017-04-11 02:32:13 +03:00
ZyX
9cad5155e3
functests: Make sure funcs.luaeval receives only one argument
2017-04-11 01:18:42 +03:00
ZyX
a40a969e9a
api: Rename _vim_id functions to nvim__id
2017-04-08 20:33:48 +03:00
ZyX
666d85d3ce
functests: Some more tests
2017-03-27 00:12:22 +03:00
ZyX
bca9c2f3c4
functests: Move existing tests from lua_spec to lua/*, fix them
2017-03-27 00:12:22 +03:00
ZyX
a3ea05c1e5
functests: Add some tests
2017-03-27 00:12:22 +03:00