1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-10 09:55:46 +01:00

Fix serialization of commands with embedded new lines in their args but no heredoc support.

This commit is contained in:
Kris Maglione
2010-10-16 19:16:47 -04:00
parent c96375d7ee
commit 89950aa226
2 changed files with 4 additions and 2 deletions

View File

@@ -528,7 +528,7 @@ lookup:
"E189: " + filename.quote() + " exists (add ! to override)");
// TODO: Use a set/specifiable list here:
let lines = [cmd.serialize().map(commands.commandToString) for (cmd in commands) if (cmd.serialize)];
let lines = [cmd.serialize().map(commands.commandToString, cmd) for (cmd in commands) if (cmd.serialize)];
lines = array.flatten(lines);
lines.unshift('"' + dactyl.version + "\n");