2015-12-13 13:23 GMT+03:00 Tony Mechelynck <[email protected]>:

> I confirm the bug: In gvim 7.4.970 (Huge):
>
> :echo asin(1.0)
> E117: unknown function: asin
> E15: Invalid expression: asin(1.0)
>
> Command-line completion _does_ complete asi<Tab> to asin(
>
> Best regards,
> Tony.
>
> On Sun, Dec 13, 2015 at 10:46 AM, watiko <[email protected]> wrote:
> > Hi lists.
> >
> > The asin() is missing because the definitions list is not sorted.
> >
> > diff --git a/src/eval.c b/src/eval.c
> > index ef0ea5e..2668f3d 100644
> > --- a/src/eval.c
> > +++ b/src/eval.c
> > @@ -8073,11 +8073,13 @@ static struct fst
> >      {"argidx",         0, 0, f_argidx},
> >      {"arglistid",      0, 2, f_arglistid},
> >      {"argv",           0, 1, f_argv},
> > +#ifdef FEAT_FLOAT
> > +    {"asin",           1, 1, f_asin},  /* WJMc */
> > +#endif
> >      {"assert_equal",   2, 3, f_assert_equal},
> >      {"assert_false",   1, 2, f_assert_false},
> >      {"assert_true",    1, 2, f_assert_true},
> >  #ifdef FEAT_FLOAT
> > -    {"asin",           1, 1, f_asin},  /* WJMc */
> >      {"atan",           1, 1, f_atan},
> >      {"atan2",          2, 2, f_atan2},
> >  #endif
> >
> > Thx,
> > watiko
>

​I think this patch should also contain a test for `asin`.​



> >
> > --
> > --
> > 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
> >
> > ---
> > You received this message because you are subscribed to the Google
> Groups "vim_dev" 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.
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" 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.
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" 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.

Raspunde prin e-mail lui