From 172c0058cfe9809698ab8dfe5619a6c4f375f2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Thu, 20 Jan 2011 00:41:16 +0100 Subject: Typo and consistency fixes. --- common/locale/en-US/map.xml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'common/locale/en-US/map.xml') diff --git a/common/locale/en-US/map.xml b/common/locale/en-US/map.xml index b1e82c44..222a8115 100644 --- a/common/locale/en-US/map.xml +++ b/common/locale/en-US/map.xml @@ -625,35 +625,30 @@ describing the command's arguments. It should set the context's completions property to the list of completion results. Other influential properties include title, sort, - anthored, and filters, which are documented in the + anchored, and filters, which are documented in the source code.

- start is the index into the word being completed at which the returned values - should be applied and completions is a two-dimensional array of the form: + completions is a two-dimensional array of the form: [[arg1, description1], [arg2, description2], …]

- Otherwise thing should be an array of the same form as the - completions property of the context object. + Otherwise thing should evaluate to an array of the same form + as the completions property of the context object.

Example: - :command foo -nargs=? - \ -complete custom, - \ function (context) context.completions = [["arg1", "description1"], ["arg2", "description2"]] - \ :echo Useless + <q-args> + :command foo -nargs=? -complete custom, + \ function (context) context.completions = [["arg1", "description1"], ["arg2", "description2"]] + \ :echo Useless + <q-args> :command foo -nargs=? - \ -complete custom,[ - \ ["arg1", "description1"], - \ ["arg2, "description2"] - \ ] - \ :echo Same as above but simpler + <q-args> + \ -complete custom,[["arg1", "description1"], ["arg2, "description2"]] + \ :echo Same as above but simpler + <q-args>

Count handling

-- cgit v1.2.3