diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-02-14 11:10:36 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-02-14 11:10:36 +0100 |
commit | c7a65fe6a148f774ca99fbb6c4fff66f96195515 (patch) | |
tree | 160ee30d2ee6b2c5fa70c0910fa2a6c0e6ce2461 /test/functional/lua/buffer_updates_spec.lua | |
parent | 5ad32885d461e8ace052397b251f25fae24189a3 (diff) | |
download | rneovim-c7a65fe6a148f774ca99fbb6c4fff66f96195515.tar.gz rneovim-c7a65fe6a148f774ca99fbb6c4fff66f96195515.tar.bz2 rneovim-c7a65fe6a148f774ca99fbb6c4fff66f96195515.zip |
buffer_updates: autoload episode III: revenge of the trees
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
-rw-r--r-- | test/functional/lua/buffer_updates_spec.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/functional/lua/buffer_updates_spec.lua b/test/functional/lua/buffer_updates_spec.lua index 167fe61e1a..f38c0e8b09 100644 --- a/test/functional/lua/buffer_updates_spec.lua +++ b/test/functional/lua/buffer_updates_spec.lua @@ -635,6 +635,27 @@ describe('lua: nvim_buf_attach on_bytes', function() } eq({'new line 1 new line 2', 'new line 3'}, meths.buf_get_lines(0, 0, -1, true)) + + -- check we can undo and redo a reload event. + feed 'u' + check_events { + { "test1", "bytes", 1, 8, 0, 10, 10, 0, 1, 1, 1, 0, 1 }; + } + + feed 'u' + check_events { + { "test1", "reload", 1 }; + } + + feed '<c-r>' + check_events { + { "test1", "reload", 1 }; + } + + feed '<c-r>' + check_events { + { "test1", "bytes", 1, 14, 0, 10, 10, 1, 0, 1, 0, 1, 1 }; + } end) teardown(function() |