On Mon, Jun 23, 2008 at 8:28 PM, Ben Schmidt <[EMAIL PROTECTED]>
wrote:

> Hi, Bram,
>
> Another oddity I've recently discovered is that str2nr won't accept an
> explicitly
> positive number, such as '+3'.
>
> This is unexpected. Would you be willing to adjust the behaviour? I can't
> think of
> any negative/compatibility-breaking side effects this would have, but I
> also don't
> know where the vim_str2nr function is used.


C functions atoi() and strtol() both do accept + in front of the number, if
it matters.

Yakov

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui