On 23/03/2018 22:39, Bram Moolenaar wrote:
Life wrote:
On 23/03/2018 15:41, Jason Felice wrote:
I couldn't get feedkeys() to trigger TextChangedI either, so I've
rewritten my tests to use a terminal with small delays between
keystrokes, and this works.
I have the same problem (writing tests for a plugin that uses
TextChangedI, but TextChangedI doesn't seem to be triggered when using
feedkeys()). Would you mind showing an example of how you write a test
to work around that?
Also try using:
call test_override("char_avail", 1)
That does it!
I was just studying Test_edit_CTRL_L(), which seems to test TextChangedI
with feedkeys(), to see how that test can pass, and noticed the call to
test_override(). It was not obvious to me that char_avail would be
related to event triggering.
Thanks,
Life
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.