On 06-Jan-2011 17:30, Bram Moolenaar wrote:
>
> Ingo Karkat wrote:
>
>> I encountered this, too, and it severely impacts automated testing of
>> Vim plugins. (I was hit by this recently, sorry that I didn't yet
>> report it; I'm glad that the example mapping from Douglas shows the
>> problem so succinctly.)
>> (...)
>> I really hope that the :normal <count> issue can be fixed, as this is
>> a showstopper for automated tests.
>
> It's easy enough to change:
>
> --- ../../vim-7.3.098/src/ex_docmd.c 2010-12-02 16:01:23.000000000 +0100
> +++ ex_docmd.c 2011-01-06 17:23:43.000000000 +0100
> @@ -9310,7 +9310,7 @@
> && !got_int)
> {
> update_topline_cursor();
> - normal_cmd(&oa, FALSE); /* execute a Normal mode cmd */
> + normal_cmd(&oa, TRUE); /* execute a Normal mode cmd */
> }
> }
> #endif
>
>
> I wonder what trouble this would cause.
Wow, I hoped it would be simple, but I didn't imagine it THAT simple :-) Any
insights whether the implementation of passing FALSE was deliberate?
I can at least confirm that this patch fixes the issue in my automated tests. I
will run through my other 10 test suites, try some of my mappings and plugins
with it, and report any problem if I find one. Naturally, I would like to have
this in Vim ASAP.
Thanks for the quick reply, Bram!
-- regards, ingo
--
You received this message from the "vim_dev" 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