1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 04:57:59 +01:00

Fix minor completion bug with quoting.

This commit is contained in:
Kris Maglione
2010-12-20 03:46:13 -05:00
parent b0374abcac
commit a0adb276d0
2 changed files with 5 additions and 12 deletions

View File

@@ -566,14 +566,16 @@ const CompletionContext = Class("CompletionContext", {
*/
advance: function advance(count) {
delete this._ignoreCase;
let advance = count;
if (this.quote && count) {
count = this.quote[0].length + this.quote[1](this.filter.substr(0, count)).length;
advance = this.quote[1](this.filter.substr(0, count)).length;
count = this.quote[0].length + advance;
this.quote[0] = "";
this.quote[2] = "";
}
this.offset += count;
if (this._filter)
this._filter = this._filter.substr(count);
this._filter = this._filter.substr(advance);
},
/**