fix calling of scrollback restoration, its not done on init, but only if existing is being returned

This commit is contained in:
neon443 committed 2025-07-04 16:51:02 +01:00
1 parent 27e75285fe
commit a495419348
2 files changed
+4 -1

No files matched your search

@@ -25,7 +25,7 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
applySelectedTheme()
Task {
await restoreScrollback()
// await restoreScrollback()
await startFeedLoop()
}
}
@@ -19,6 +19,9 @@ struct TerminalController: UIViewRepresentable {
func makeUIView(context: Context) -> TerminalView {
if let sessionID = handler.sessionID {
if let existing = container.sessions[sessionID] {
Task {
await existing.terminalView.restoreScrollback()
}
return existing.terminalView
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.