1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-25 01:52:26 +01:00

Fix heredoc processing.

Closes #114.

Just reverting the relevant erroneous commit as it's consistent with the
explicit use of var's hoisting behaviour elsewhere in the codebase and
because I don't personally find any of the other options more readable.
This commit is contained in:
Doug Kearns
2015-12-22 00:31:39 +11:00
parent 42ac708456
commit 5ad7574353

View File

@@ -798,7 +798,7 @@ var Commands = Module("commands", {
let lines = string.split(/\r\n|[\r\n]/);
let startLine = context.line;
for (let i = 0; i < lines.length && !context.finished; i++) {
for (var i = 0; i < lines.length && !context.finished; i++) {
// Deal with editors from Silly OSs.
let line = lines[i].replace(/\r$/, "");