diff options
author | chentau <tchen1998@gmail.com> | 2021-05-06 20:37:09 -0700 |
---|---|---|
committer | chentau <tchen1998@gmail.com> | 2021-05-09 16:23:01 -0700 |
commit | 13a9bd006f08819184963b61909f0595321adc51 (patch) | |
tree | 9618b3f0ffad35b4c97540707461a9137d0ebd35 /test/functional/lua/buffer_updates_spec.lua | |
parent | a847abc21b339a8402d39cc2736f3f73e4f2f124 (diff) | |
download | rneovim-13a9bd006f08819184963b61909f0595321adc51.tar.gz rneovim-13a9bd006f08819184963b61909f0595321adc51.tar.bz2 rneovim-13a9bd006f08819184963b61909f0595321adc51.zip |
make get_region_bytecount end-exclusive
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
-rw-r--r-- | test/functional/lua/buffer_updates_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/lua/buffer_updates_spec.lua b/test/functional/lua/buffer_updates_spec.lua index bd7f0b9cdd..5bfab1d52d 100644 --- a/test/functional/lua/buffer_updates_spec.lua +++ b/test/functional/lua/buffer_updates_spec.lua @@ -962,20 +962,20 @@ describe('lua: nvim_buf_attach on_bytes', function() local check_events = setup_eventcheck(verify, {"AAA", "BBB"}) -- delete - command("lua vim.api.nvim_buf_set_lines(0, 0, 1, true, {})") + meths.buf_set_lines(0, 0, 1, true, {}) check_events { { "test1", "bytes", 1, 3, 0, 0, 0, 1, 0, 4, 0, 0, 0 }; } -- add - command("lua vim.api.nvim_buf_set_lines(0, 0, 0, true, {'asdf'})") + meths.buf_set_lines(0, 0, 0, true, {'asdf'}) check_events { { "test1", "bytes", 1, 4, 0, 0, 0, 0, 0, 0, 1, 0, 5 }; } -- replace - command("lua vim.api.nvim_buf_set_lines(0, 0, 1, true, {'asdf', 'fdsa'})") + meths.buf_set_lines(0, 0, 1, true, {'asdf', 'fdsa'}) check_events { { "test1", "bytes", 1, 5, 0, 0, 0, 1, 0, 5, 2, 0, 10 }; } |