2016-12-16 23:28 GMT+03:00 Christian Brabandt <[email protected]>:
> No. These functions work with files in the argument list of the current
> window.
>
> I think it is then better to have an argument for the argc and argv function
> to get the command line arguments instead of getting a new global variable.

This changes the semantics significantly. argv() function returns a
list which may be mutated and after some time may have nothing to do
with original arguments provided on the command-line: generally it
returns just *some* list of files, or a single file from list. v:argv
should be a VAR_FIXED (immutable) list which may contain anything, but
in the current state cannot be used as a list of files even after
filtering out other arguments (missing v:startup_pwd).

BTW, if I am not mistaking currently list may be altered. One needs to
set list->lv_lock to prevent list value from changing, VV_RO only
disallows using different list.

>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub

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