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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user