1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 07:27:58 +01:00

More completion stuff.

This commit is contained in:
Kris Maglione
2008-11-23 23:40:40 +00:00
parent fef1cecb75
commit 7d8eb88954
15 changed files with 136 additions and 110 deletions

View File

@@ -349,10 +349,18 @@ const util = { //{{{
return color ? string : [s for each (s in string)].join("");
},
range: function (start, end)
range: function (start, end, reverse)
{
while (start < end)
yield start++;
if (!reverse)
{
while (start < end)
yield start++;
}
else
{
while (start >= end)
yield --start;
}
},
interruptableRange: function (start, end, time)