diff options
author | NAKAI Tsuyoshi <82267684+uga-rosa@users.noreply.github.com> | 2023-04-11 23:28:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 16:28:46 +0200 |
commit | 9e86f473e0f4e21c5f40bf990c53194d593a0f9f (patch) | |
tree | 39f52084142ee87eb1e23a0aaa04eb337bca8f93 /test/functional/lua/vim_spec.lua | |
parent | aab95ec67e4d80e63cc5c5acc42f3832e76e0781 (diff) | |
download | rneovim-9e86f473e0f4e21c5f40bf990c53194d593a0f9f.tar.gz rneovim-9e86f473e0f4e21c5f40bf990c53194d593a0f9f.tar.bz2 rneovim-9e86f473e0f4e21c5f40bf990c53194d593a0f9f.zip |
feat(lua): vim.region accepts getpos() arg (#22635)
Diffstat (limited to 'test/functional/lua/vim_spec.lua')
-rw-r--r-- | test/functional/lua/vim_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua index 45d9263c0c..85e45788e8 100644 --- a/test/functional/lua/vim_spec.lua +++ b/test/functional/lua/vim_spec.lua @@ -2297,6 +2297,10 @@ describe('lua stdlib', function() insert([[αα]]) eq({0,5}, exec_lua[[ return vim.region(0,{0,0},{0,4},'3',true)[0] ]]) end) + it('getpos() input', function() + insert('getpos') + eq({0,6}, exec_lua[[ return vim.region(0,{0,0},'.','v',true)[0] ]]) + end) end) describe('vim.on_key', function() |