Skip to content

Commit

Permalink
Refactor: make lines storage or backup fields Kotlin internal
Browse files Browse the repository at this point in the history
To not expose them.
  • Loading branch information
KonstantinHudyakov committed Aug 12, 2024
1 parent acd0c2b commit 619d270
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/com/jediterm/terminal/model/TerminalTextBuffer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ class TerminalTextBuffer(
var screenBuffer: LinesBuffer = createLinesBuffer(screenLinesStorage)
private set

@get:ApiStatus.Internal
val historyLinesStorageOrBackup: LinesStorage
internal val historyLinesStorageOrBackup: LinesStorage
get() = if (isUsingAlternateBuffer) historyLinesStorageBackup!! else historyLinesStorage

@get:ApiStatus.Internal
val screenLinesStorageOrBackup: LinesStorage
internal val screenLinesStorageOrBackup: LinesStorage
get() = if (isUsingAlternateBuffer) screenLinesStorageBackup!! else screenLinesStorage

val historyLinesCount: Int
Expand Down

0 comments on commit 619d270

Please sign in to comment.