Hi all,

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

- Yegappan

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