Friday, March 23, 2018

Re: 'normal' doesn't trigger TextChangedI

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.

Thanks!


On Wed, Mar 21, 2018 at 5:28 PM, Bram Moolenaar <Bram@moolenaar.net> wrote:

Jason Felice wrote:

TextChangedI is only triggered on redraw and when using :normal that
doesn't happen.

> at least?  It might not trigger InsertEnter either.

AFAIK InsertEnter is triggered also when using a :normal command.

> I want to write tests for my plugin, so is there a better way to simulate
> normal input?

You can use feedkeys().

--
A day without sunshine is like, well, night.

 /// 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: