mirror of
https://github.com/TermoraDev/termora.git
synced 2026-03-31 21:32:20 +08:00
fix: line breaks are lost when copying
This commit is contained in:
@@ -113,6 +113,8 @@ open class SelectionModelImpl(private val terminal: Terminal) : SelectionModel {
|
|||||||
val line = iterator.next()
|
val line = iterator.next()
|
||||||
val chars = line.chars()
|
val chars = line.chars()
|
||||||
if (chars.isEmpty() || chars.first().first.isNull) {
|
if (chars.isEmpty() || chars.first().first.isNull) {
|
||||||
|
// fix https://github.com/TermoraDev/termora/issues/1473
|
||||||
|
sb.appendLine()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user