Friday, March 23, 2018

Re: 'normal' doesn't trigger TextChangedI

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)

--
The future isn't what it used to be.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: