Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lhecker committed Mar 14, 2023
1 parent 612baad commit 470b02c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/host/stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,11 @@ try
const auto firstLineEnd = input.find(UNICODE_LINEFEED) + 1;
input = input.substr(0, firstLineEnd);
}

const auto inputSizeBefore = input.size();
std::span writer{ buffer };
inputBuffer.Consume(unicode, input, writer);

// Since we truncated `input` to only include the first line,
// we need to restore `input` here to the entirety of the remaining input.
if (readHandleState.IsMultilineInput())
Expand Down

0 comments on commit 470b02c

Please sign in to comment.