diff options
| author | Yi Ming <ofseed@foxmail.com> | 2026-05-19 16:32:12 +0800 |
|---|---|---|
| committer | Yi Ming <ofseed@foxmail.com> | 2026-05-20 16:23:01 +0800 |
| commit | 8d1233a1440cb93f64ff1d6181138437251e3e63 (patch) | |
| tree | eb5ad435af0288fbb5da48f83deb6143086a7518 /test/functional/lua/luaeval_spec.lua | |
| parent | f3bb21e71da09a357c0b05e53b4e11afdceb6621 (diff) | |
| download | rneovim-8d1233a1440cb93f64ff1d6181138437251e3e63.tar.gz rneovim-8d1233a1440cb93f64ff1d6181138437251e3e63.tar.bz2 rneovim-8d1233a1440cb93f64ff1d6181138437251e3e63.zip | |
feat(pos,range)!: remove `range.cursor()` and `range:to_cursor()`,
Problem:
- A window can only have one cursor, ranges selected by the cursor are typically
obtained by marks like ">" and "<", instead of calling get_cursor() twice.
- `vim.Range` is described as end-exclusive,
but the current `range.cursor()`/`range:to_cursor()` are end-inclusive.
- Conversion between `vim.Range` and mark-indexed range can be done by
`range.mark()`/`range:to_mark()`
Solution:
Remove `range.cursor()` and `range:to_cursor()`,
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
0 files changed, 0 insertions, 0 deletions