diff options
| author | Yi Ming <ofseed@foxmail.com> | 2026-05-20 16:02:57 +0800 |
|---|---|---|
| committer | Yi Ming <ofseed@foxmail.com> | 2026-05-20 16:23:03 +0800 |
| commit | b1c1f320890a4577a5edebfe267d2c5f6f8dd130 (patch) | |
| tree | e7cae29db329a6e6527d4381ef61dd8c85e3e259 /test/functional/lua/luaeval_spec.lua | |
| parent | 8d1233a1440cb93f64ff1d6181138437251e3e63 (diff) | |
| download | rneovim-b1c1f320890a4577a5edebfe267d2c5f6f8dd130.tar.gz rneovim-b1c1f320890a4577a5edebfe267d2c5f6f8dd130.tar.bz2 rneovim-b1c1f320890a4577a5edebfe267d2c5f6f8dd130.zip | |
refactor(pos,range): extract `vim.pos._util`
Problem:
- To share logic, creating a `vim.Range` currently creates two `vim.Pos` values
as intermediates, which causes unnecessary table allocations.
- `pos.lua` and `range.lua` contain some overlapping logic.
Solution:
Add `vim.pos._util`, a module for handling
positions represented directly by `row` and `col`.
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
0 files changed, 0 insertions, 0 deletions