Skip to content

Commit

Permalink
Merge pull request #337 from iOSappssolutions/main
Browse files Browse the repository at this point in the history
Update scroll offset when terminal view resizes
  • Loading branch information
migueldeicaza authored Mar 4, 2024
2 parents 70659ef + a67a679 commit c87c2a1
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 c87c2a1

Please sign in to comment.