Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

bug fix for matchSubset when minChars >= 2 #37

Open
wants to merge 1 commit into from

1 participant

@kasparsj

Hi,
please see the code. Just 1 line edited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 26, 2013
  1. @kasparsj
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  jquery.autocomplete.js
View
2  jquery.autocomplete.js
@@ -576,7 +576,7 @@ $.Autocompleter.Cache = function(options) {
return data[q];
} else
if (options.matchSubset) {
- for (var i = q.length - 1; i >= options.minChars; i--) {
+ for (var i = q.length - 1; i >= options.minChars - 1; i--) {
var c = data[q.substr(0, i)];
if (c) {
var csub = [];
Something went wrong with that request. Please try again.