diff options
author | notomo <notomo.motono@gmail.com> | 2023-07-04 23:07:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 22:07:55 +0800 |
commit | 3ecd45ded044c47efa76b74e9e3b720fbe27adc7 (patch) | |
tree | b77a31ec1aac5f7c9fc4ed1555347abca228a095 /test/functional/api/buffer_spec.lua | |
parent | cf5f1492d702f940934b0b40024d1741e4474542 (diff) | |
download | rneovim-3ecd45ded044c47efa76b74e9e3b720fbe27adc7.tar.gz rneovim-3ecd45ded044c47efa76b74e9e3b720fbe27adc7.tar.bz2 rneovim-3ecd45ded044c47efa76b74e9e3b720fbe27adc7.zip |
fix(api): allow negative column arguments for nvim_buf_set_text (#23501)
Diffstat (limited to 'test/functional/api/buffer_spec.lua')
-rw-r--r-- | test/functional/api/buffer_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/api/buffer_spec.lua b/test/functional/api/buffer_spec.lua index d9d4539fe8..512a1a08a6 100644 --- a/test/functional/api/buffer_spec.lua +++ b/test/functional/api/buffer_spec.lua @@ -437,6 +437,10 @@ describe('api/buf', function() -- can append to a line set_text(1, 4, -1, 4, {' and', 'more'}) eq({'goodbye bar', 'text and', 'more'}, get_lines(0, 3, true)) + + -- can use negative column numbers + set_text(0, -5, 0, -1, {'!'}) + eq({'goodbye!'}, get_lines(0, 1, true)) end) it('works with undo', function() |