From 5ad7574353d1308f421fb97e2fb5b42e9e07ce6f Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 22 Dec 2015 00:31:39 +1100 Subject: [PATCH] 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. --- common/modules/commands.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/modules/commands.jsm b/common/modules/commands.jsm index 270e6a64..7cc58592 100644 --- a/common/modules/commands.jsm +++ b/common/modules/commands.jsm @@ -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$/, "");