Fix Scrollbar covering cursor (#3741)

This commit is contained in:
cutelisp 2025-05-11 14:22:59 +01:00 committed by GitHub
parent 809db4ee24
commit 895d9d2c82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -248,8 +248,8 @@ func (w *BufWindow) Relocate() bool {
w.StartCol = cx
ret = true
}
if cx+w.gutterOffset+rw > w.StartCol+w.Width {
w.StartCol = cx - w.Width + w.gutterOffset + rw
if cx+rw > w.StartCol+w.bufWidth {
w.StartCol = cx - w.bufWidth + rw
ret = true
}
}