Yegappan Lakshmanan wrote:

> I think there is a bug in the argidx() function when all the files in the
> argument list are deleted.
> 
> $ vim -u NONE -N
> :echo argidx()
> 0
> :args a b c
> :last
> :echo argidx()
> 2
> :%argdelete
> :echo argidx()
> 1
> 
> The last invocation of argidx() should return 0 instead of 1 (as the argument
> list is empty).
> 
> I think this can be fixed in the ex_argdelete() function by setting
> curwin->w_arg_idx to ARGCOUNT - 1 if it is greater than ARGCOUNT
> (after updating the argument list).

Yes, thanks for reporting the problem.

-- 
I recommend ordering large cargo containers of paper towels to make up
whatever budget underruns you have.  Paper products are always useful and they
have the advantage of being completely flushable if you need to make room in
the storage area later.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [email protected] -- 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_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