Skip to content

Commit ff88b65

Browse files
authored
Merge pull request #191 from MineRobber9000/fix190
Prevent accidental discard of line content during file.readLines
2 parents d1f2fcb + fc2e62b commit ff88b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MiniScript-cpp/src/ShellIntrinsics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ static IntrinsicResult intrinsic_readLines(Context *context, IntrinsicResult par
749749
}
750750
}
751751
if (lineStart < bytesRead) {
752-
partialLine = String(&buf[lineStart], bytesRead - lineStart);
752+
partialLine += String(&buf[lineStart], bytesRead - lineStart);
753753
}
754754
}
755755
if (!partialLine.empty()) list.Add(partialLine);

0 commit comments

Comments
 (0)