diff options
author | Kris Maglione <maglione.k@gmail.com> | 2010-12-30 19:17:40 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2010-12-30 19:17:40 -0500 |
commit | 5f47d83f76ad62c85119c12ac040ac8f4b50f6e2 (patch) | |
tree | ece8a02bac3f2b036158768a72ba9d9930d936a2 /common | |
parent | 482020a68ab2676fc3637fbca6f0af9bd8eda35b (diff) | |
download | pentadactyl-5f47d83f76ad62c85119c12ac040ac8f4b50f6e2.tar.gz |
Don't restrict the length of option/pref completions, just of the string displayed in the completion list.
Diffstat (limited to 'common')
-rw-r--r-- | common/content/options.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/content/options.js b/common/content/options.js index 4faaa18f..7e630acc 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -984,10 +984,12 @@ var Options = Module("options", { if (filter[filter.length - 1] == "=") { context.advance(filter.length); filter = filter.substr(0, filter.length - 1); + + context.pushProcessor(0, function (item, text, next) next(item, text.substr(0, 100))); context.completions = [ [prefs.get(filter), "Current Value"], [prefs.getDefault(filter), "Default Value"] - ].filter(function (k) k[0] != null && String(k[0]).length < 200); + ].filter(function (k) k[0] != null); return null; } @@ -1017,10 +1019,11 @@ var Options = Module("options", { if (!opt.value && !opt.operator && !opt.invert) { context.fork("default", 0, this, function (context) { context.title = ["Extra Completions"]; + context.pushProcessor(0, function (item, text, next) next(item, text.substr(0, 100))); context.completions = [ [option.stringValue, "Current value"], [option.stringDefaultValue, "Default value"] - ].filter(function (f) f[0] !== "" && String(f[0]).length < 200); + ].filter(function (f) f[0] !== ""); context.quote = ["", util.identity, ""]; }); } |