Fix Scrollbar covering cursor

This commit is contained in:
cutelisp 2025-05-10 00:20:30 +01:00
parent 91832d0016
commit 113c7bc68b

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
}
}