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:
@@ -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$/, "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user