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

Completion cleanup. Use elem.contentDocument in followLink.

This commit is contained in:
Kris Maglione
2008-11-05 17:45:50 +00:00
parent a39226ff23
commit e89c63070b
3 changed files with 10 additions and 17 deletions

View File

@@ -231,14 +231,8 @@ function IO() //{{{
return;
}
let lines = [['"' + liberator.version]];
// FIXME: Use a set/specifiable list here:
for (let cmd in commands)
{
if (cmd.serial)
lines.push(cmd.serial().map(commands.commandToString));
}
let lines = [cmd.serial().map(commands.commandToString) for (cmd in commands) if (cmd.serial)];
lines = util.Array.flatten(lines);
// :mkvimrc doesn't save autocommands, so we don't either - remove this code at some point
@@ -250,6 +244,7 @@ function IO() //{{{
// line += "\nlet mapleader = \"" + mappings.getMapLeader() + "\"\n";
// source a user .vimperatorrc file
lines.unshift('"' + liberator.version);
lines.push("\nsource! " + filename + ".local");
lines.push("\n\" vim: set ft=vimperator:");