mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:57:58 +01:00
Cleanup some stuffs.
This commit is contained in:
@@ -262,7 +262,7 @@ CompletionContext.prototype = {
|
||||
lists.pop());
|
||||
if (!substrings) // FIXME: How is this undefined?
|
||||
return [];
|
||||
return util.Array.uniq(substrings);
|
||||
return util.Array.uniq(Array.slice(substrings));
|
||||
},
|
||||
// Temporary
|
||||
get longestAllSubstring()
|
||||
@@ -1049,8 +1049,10 @@ function Completion() //{{{
|
||||
let end = (frame == -1 ? lastIdx : get(frame + 1)[OFFSET]);
|
||||
|
||||
cacheKey = null;
|
||||
let obj = [[cache.evalContext, "Local Variables"], [userContext, "Global Variables"],
|
||||
[modules, "modules"], [window, "window"]]; // Default objects;
|
||||
let obj = [[cache.evalContext, "Local Variables"],
|
||||
[userContext, "Global Variables"],
|
||||
[modules, "modules"],
|
||||
[window, "window"]]; // Default objects;
|
||||
// Is this an object dereference?
|
||||
if (dot < statement) // No.
|
||||
dot = statement - 1;
|
||||
|
||||
Reference in New Issue
Block a user