diff options
| author | Yi Ming <ofseed@foxmail.com> | 2026-06-02 20:06:08 +0800 |
|---|---|---|
| committer | Yi Ming <ofseed@foxmail.com> | 2026-06-08 19:52:51 +0800 |
| commit | 2bd13177b83a158f2e8a00e7aeac5ffe793e0923 (patch) | |
| tree | c40c4fdffbffff6da44aec0d2d6286d7046c1076 /test/functional/vimscript | |
| parent | 3f37b230af914906084fd21d1c630ecf3fb30862 (diff) | |
| download | rneovim-2bd13177b83a158f2e8a00e7aeac5ffe793e0923.tar.gz rneovim-2bd13177b83a158f2e8a00e7aeac5ffe793e0923.tar.bz2 rneovim-2bd13177b83a158f2e8a00e7aeac5ffe793e0923.zip | |
feat(pos): create a cursor position by using the current of a window
Problem:
`vim.pos.cursor(vim.api.nvim_get_current_buf(win), vim.api.nvim_win_get_cursor(win))`
is too verbose to create a cursor position of a window,
but it is a common use case.
Solution:
Overload `vim.pos.cursor()`, so that it accepts `win` as an argument when `pos` is omitted.
Diffstat (limited to 'test/functional/vimscript')
0 files changed, 0 insertions, 0 deletions