mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 18:04:12 +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 lines = string.split(/\r\n|[\r\n]/);
|
||||||
let startLine = context.line;
|
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.
|
// Deal with editors from Silly OSs.
|
||||||
let line = lines[i].replace(/\r$/, "");
|
let line = lines[i].replace(/\r$/, "");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user