fix: line breaks are lost when copying

This commit is contained in:
hstyi
2026-03-25 10:22:00 +08:00
committed by hstyi
parent e5e8c8379a
commit a2e72eadfb

View File

@@ -113,6 +113,8 @@ open class SelectionModelImpl(private val terminal: Terminal) : SelectionModel {
val line = iterator.next()
val chars = line.chars()
if (chars.isEmpty() || chars.first().first.isNull) {
// fix https://github.com/TermoraDev/termora/issues/1473
sb.appendLine()
continue
}