@@ -2026,11 +2026,11 @@ append({lnum}, {text}) Number append {text} below line {lnum}
20262026appendbufline({expr} , {lnum} , {text} )
20272027 Number append {text} below line {lnum}
20282028 in buffer {expr}
2029- argc() Number number of files in the argument list
2029+ argc( [ {winid} ]) Number number of files in the argument list
20302030argidx() Number current index in the argument list
20312031arglistid([{winnr} [, {tabnr} ]]) Number argument list id
2032- argv({nr} ) String {nr} entry of the argument list
2033- argv() List the argument list
2032+ argv({nr} [, {winid} ]) String {nr} entry of the argument list
2033+ argv([-1, {winid} ]) List the argument list
20342034assert_beeps({cmd} ) Number assert {cmd} causes a beep
20352035assert_equal({exp} , {act} [, {msg} ])
20362036 Number assert {exp} is equal to {act}
@@ -2596,8 +2596,15 @@ appendbufline({expr}, {lnum}, {text}) *appendbufline()*
25962596 :let failed = appendbufline(13, 0, "# THE START")
25972597<
25982598 *argc()*
2599- argc() The result is the number of files in the argument list of the
2600- current window. See | arglist | .
2599+ argc([{winid} ])
2600+ The result is the number of files in the argument list. See
2601+ | arglist | .
2602+ If {winid} is not supplied, the argument list of the current
2603+ window is used.
2604+ If {winid} is -1, the global argument list is used.
2605+ Otherwise {winid} specifies the window of which the argument
2606+ list is used: either the window number or the window ID.
2607+ Returns -1 if the {winid} argument is invalid.
26012608
26022609 *argidx()*
26032610argidx() The result is the current index in the argument list. 0 is
@@ -2608,7 +2615,7 @@ arglistid([{winnr} [, {tabnr}]])
26082615 Return the argument list ID. This is a number which
26092616 identifies the argument list being used. Zero is used for the
26102617 global argument list. See | arglist | .
2611- Return -1 if the arguments are invalid.
2618+ Returns -1 if the arguments are invalid.
26122619
26132620 Without arguments use the current window.
26142621 With {winnr} only use this window in the current tab page.
@@ -2617,17 +2624,19 @@ arglistid([{winnr} [, {tabnr}]])
26172624 {winnr} can be the window number or the | window-ID | .
26182625
26192626 *argv()*
2620- argv([{nr} ]) The result is the {nr} th file in the argument list of the
2621- current window. See | arglist | . "argv(0)" is the first one.
2622- Example: >
2627+ argv([{nr} [, {winid} ])
2628+ The result is the {nr} th file in the argument list. See
2629+ | arglist | . "argv(0)" is the first one. Example: >
26232630 :let i = 0
26242631 :while i < argc()
26252632 : let f = escape(fnameescape(argv(i)), '.')
26262633 : exe 'amenu Arg.' . f . ' :e ' . f . '<CR>'
26272634 : let i = i + 1
26282635 :endwhile
2629- < Without the {nr} argument a | List | with the whole | arglist | is
2630- returned.
2636+ < Without the {nr} argument, or when {nr} is -1, a | List | with
2637+ the whole | arglist | is returned.
2638+
2639+ The {winid} argument specifies the window ID, see | argc() | .
26312640
26322641assert_beeps({cmd} ) *assert_beeps()*
26332642 Run {cmd} and add an error message to | v:errors | if it does
0 commit comments