mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 00:12:29 +02: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:
1 parent
42ac708456
commit
5ad7574353
1 file changed
+1
-1
@@ -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