Skip to content

Commit f3b1547

Browse files
Merge pull request #388 from hanyang-tony/work/hany/fix_scroll
fix wrong selection range in scroll mode
2 parents dd33369 + 91ef838 commit f3b1547

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/SwiftTerm/Mac/MacTerminalView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ open class TerminalView: NSView, NSTextInputClient, NSUserInterfaceValidations,
897897
return Position (col: Int (x), row: Int (bounds.height-y))
898898
}
899899
let col = Int (point.x / cellDimension.width)
900-
let row = Int ((frame.height-point.y) / cellDimension.height) + terminal.buffer.yDisp
900+
let row = Int ((frame.height-point.y) / cellDimension.height)
901901
if row < 0 {
902902
return (Position(col: 0, row: 0), toInt (point))
903903
}

0 commit comments

Comments
 (0)