1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 23:47:57 +01:00

Fix some Firefox version-specific brokenness.

This commit is contained in:
Kris Maglione
2010-11-07 07:33:25 -05:00
parent 21fe6d9fff
commit 506c684073
6 changed files with 8 additions and 16 deletions

View File

@@ -538,7 +538,7 @@ const CompletionContext = Class("CompletionContext", {
*/
advance: function advance(count) {
delete this._ignoreCase;
if (this.quote) {
if (this.quote && count) {
count = this.quote[0].length + this.quote[1](this.filter.substr(0, count)).length;
this.quote[0] = "";
this.quote[2] = "";
@@ -608,13 +608,6 @@ const CompletionContext = Class("CompletionContext", {
return context;
},
getText: function getText(item) {
let text = item[self.keys["text"]];
if (self.quote)
return self.quote(text);
return text;
},
highlight: function highlight(start, length, type) {
if (arguments.length == 0) {
for (let type in this.selectionTypes)