Skip to content

Commit

Permalink
fix wasWritten logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kattouf committed Jul 7, 2024
1 parent a10008d commit 4e6f398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Printer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final class Printer: Sendable {
$0.write(buffer.value.data(using: .utf8)!)
try? $0.synchronize()
}
if !_wasWritten.value && !buffer.value.withoutANSI().isEmpty {
if !_wasWritten.value {
_wasWritten.setValue(true)
}
buffer.setValue(String())
Expand Down

0 comments on commit 4e6f398

Please sign in to comment.