Skip to content

Commit

Permalink
Update scroll offset when terminal view resizes
Browse files Browse the repository at this point in the history
  • Loading branch information
iOSappssolutions committed Mar 4, 2024
1 parent 70659ef commit a67a679
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/SwiftTerm/Apple/AppleTerminalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ extension TerminalView {
search.invalidate ()

terminalDelegate?.sizeChanged (source: self, newCols: newCols, newRows: newRows)

updateScroller()
return true
}
return false
Expand Down Expand Up @@ -545,7 +547,6 @@ extension TerminalView {
func calcLineOffset (forRow: Int) -> CGFloat {
cellDimension.height * CGFloat (forRow-bufferOffset+1)
}

// draw lines
#if os(iOS) || os(visionOS)
// On iOS, we are drawing the exposed region
Expand Down

0 comments on commit a67a679

Please sign in to comment.