1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-10 14:04:11 +01:00

Also group :autocmds.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-05 08:13:56 -05:00
parent 6ee586087a
commit 0cc69f8932
3 changed files with 110 additions and 78 deletions

View File

@@ -86,10 +86,10 @@ var Template = Module("Template", {
let ret = <></>;
let n = 0;
for each (let i in Iterator(iter)) {
let val = func(i);
let val = func(i, n);
if (val == undefined)
continue;
if (sep && n++)
if (n++ && sep)
ret += sep;
if (interruptable && n % interruptable == 0)
util.threadYield(true, true);