diff --git a/jquery.autocomplete.js b/jquery.autocomplete.js index 497a80a..b398805 100644 --- a/jquery.autocomplete.js +++ b/jquery.autocomplete.js @@ -238,7 +238,7 @@ $.Autocompleter = function(input, options) { } progress += seperator; }); - words[wordAt] = v; + words[words.length-1] = v; // TODO this should set the cursor to the right position, but it gets overriden somewhere //$.Autocompleter.Selection(input, progress + seperator, progress + seperator); v = words.join( options.multipleSeparator );