summaryrefslogtreecommitdiff
path: root/common/modules
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2015-12-22 00:31:39 +1100
committerDoug Kearns <dougkearns@gmail.com>2015-12-22 00:31:39 +1100
commit5ad7574353d1308f421fb97e2fb5b42e9e07ce6f (patch)
treeda2b2176701b481b2ffa70627e209740ef43ac5b /common/modules
parent42ac708456af59f8ef5090e368a781349ddee931 (diff)
downloadpentadactyl-5ad7574353d1308f421fb97e2fb5b42e9e07ce6f.tar.gz
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.
Diffstat (limited to 'common/modules')
-rw-r--r--common/modules/commands.jsm2
1 files changed, 1 insertions, 1 deletions
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$/, "");