1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 03:02:27 +01:00

Beginnings of bettter incsearch support

This commit is contained in:
Kris Maglione
2008-10-18 02:58:05 +00:00
parent f0318d9675
commit 0dab4f86cf
4 changed files with 169 additions and 50 deletions

View File

@@ -149,8 +149,16 @@ function Completion() //{{{
// Things we can dereference
if (["object", "string", "function"].indexOf(typeof obj) == -1)
continue;
/* Try harder.
if (/^\[XPCNativeWrapper /.test(obj))
obj = obj.wrappedJSObject;
*/
try
{
if (obj.wrappedJSObject)
obj = obj.wrappedJSObject;
}
catch (e) {}
for (let [k, v] in this.iter(obj))
compl.push([k, v]);
@@ -381,7 +389,7 @@ function Completion() //{{{
let statement = get(frame, 0, STATEMENTS) || 0; // Current statement.
let prev = statement;
let obj;
for (let [i, dot] in Iterator(get(frame)[DOTS]))
for (let [i, dot] in Iterator(get(frame)[DOTS].concat(stop)))
{
if (dot < statement)
continue;