aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-03-28 00:52:48 +0100
committerGravatar Tom Willemsen2013-03-28 00:52:48 +0100
commit933a51ed707158c4c0eee879e3a4db885d644cc6 (patch)
tree5b35c3db29aee1e3f939c275ea3cd3ffd0cbf56f /js
parentdfd6f71c4d72002c8afda0f281507fda22b9ab29 (diff)
downloadclark-933a51ed707158c4c0eee879e3a4db885d644cc6.tar.gz
clark-933a51ed707158c4c0eee879e3a4db885d644cc6.zip
Change order of script output
The order of parameters for `--script' and without it was different, to keep things simple these should be the same.
Diffstat (limited to 'js')
-rw-r--r--js/clark.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/clark.js b/js/clark.js
index b1ea691..80eff5d 100644
--- a/js/clark.js
+++ b/js/clark.js
@@ -148,9 +148,9 @@ function clark_complete(input, pos, conservative)
});
let c = { count: ret.length,
- get_string: function (i) ret[i][0],
- get_description: function (i) ret[i][1],
- get_input_state: function (i) [ret[i][2]] };
+ get_string: function (i) ret[i][1],
+ get_description: function (i) ret[i][2],
+ get_input_state: function (i) [ret[i][0]] };
yield co_return(c);
}
}