diff options
author | Shougo <Shougo.Matsu@gmail.com> | 2022-11-07 12:02:29 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 19:02:29 -0800 |
commit | 4fd876271a8bc3349fccb14d2e0203af1f9e6698 (patch) | |
tree | 6e34c762e9bade3c4f96e3d033d6a67ab55fcfe1 /test/functional/terminal/buffer_spec.lua | |
parent | c4f3d41d6b06f3a8b399a36d7f3def8f25a71208 (diff) | |
download | rneovim-4fd876271a8bc3349fccb14d2e0203af1f9e6698.tar.gz rneovim-4fd876271a8bc3349fccb14d2e0203af1f9e6698.tar.bz2 rneovim-4fd876271a8bc3349fccb14d2e0203af1f9e6698.zip |
vim-patch:9.0.0756 #20680
Problem: No autocmd event for changing text in a terminal window.
Solution: Add TextChangedT. (Shougo Matsushita, closes vim/vim#11366)
https://github.com/vim/vim/commit/4ccaedfcd7526983f4b6b3b06b0bfb54f333f1f3
Diffstat (limited to 'test/functional/terminal/buffer_spec.lua')
-rw-r--r-- | test/functional/terminal/buffer_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/terminal/buffer_spec.lua b/test/functional/terminal/buffer_spec.lua index 9d10f43ec6..46d08897e0 100644 --- a/test/functional/terminal/buffer_spec.lua +++ b/test/functional/terminal/buffer_spec.lua @@ -410,6 +410,14 @@ describe('on_lines does not emit out-of-bounds line indexes when', function() feed_command('bdelete!') eq('', exec_lua([[return _G.cb_error]])) end) + + it('runs TextChangedT event', function() + meths.set_var('called', 0) + command('autocmd TextChangedT * ++once let g:called = 1') + feed_command('terminal') + feed('iaa') + eq(1, meths.get_var('called')) + end) end) it('terminal truncates number of composing characters to 5', function() |