From 09f37ea2e1a4ab254019a98d45d991eca758a636 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 28 Mar 2013 00:52:48 +0100 Subject: [PATCH] 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. --- clark.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clark.js b/clark.js index b1ea691..80eff5d 100644 --- a/clark.js +++ b/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); } }