mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
fix calling of scrollback restoration, its not done on init, but only if existing is being returned
This commit is contained in:
@@ -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