mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
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)
4ccaedfcd7
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user