Gregory Anders
99b5ffd688
perf(vim.text): use lookup table implementation for hex encoding ( #30080 )
...
Co-authored-by: glepnir <glephunter@gmail.com>
2024-11-26 13:56:01 -06:00
Gregory Anders
33464189bc
fix(vim.text): handle very long strings ( #30075 )
...
Lua's string.byte has a maximum (undocumented) allowable length, so
vim.text.hencode fails on large strings with the error "string slice too
long".
Instead of converting the string to an array of bytes up front, convert
each character to a byte one at a time.
2024-08-17 22:28:03 -05:00
Gregory Anders
4cff418564
fix(vim.text): remove assert from vim.text.hexdecode
...
Instead, return nil plus an error message if the input is invalid.
2024-05-31 08:25:35 -05:00
Lewis Russell
14e4b6bbd8
refactor(lua): type annotations
2024-03-16 19:26:10 +00:00
Jongwook Choi
67f5332344
fix(docs): clean up non-docstring comments for vimdoc gen
...
These non-docstring comments can be included into doxygen's brief
description and then appear in the succeeding function documentation.
2024-01-02 11:16:48 -05:00
Gregory Anders
4bf47222c9
feat: add vim.text module ( #26069 )
2023-11-16 11:35:54 -06:00