Skip to content

Commit aa977c3

Browse files
committed
Expose BufferLine.isWrapped for embedders.
Based on #604 By https://github.com/Vahn84
1 parent d327a2b commit aa977c3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Sources/SwiftTerm/BufferLine.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ public final class BufferLine: CustomDebugStringConvertible {
2121
/// Renders the bottom of a character, using two cells
2222
case doubledDown
2323
}
24-
var isWrapped: Bool { didSet { bump() } }
24+
/// True when this line is a continuation of the previous line: the text
25+
/// soft-wrapped onto it rather than starting after an explicit newline.
26+
public internal(set) var isWrapped: Bool { didSet { bump() } }
2527
var renderMode: RenderLineMode = .single { didSet { bump() } }
2628
private var data: UnsafeMutableBufferPointer<CharData>
2729
private var dataSize: Int

0 commit comments

Comments
 (0)