mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
Fix Scrollbar covering cursor (#3741)
This commit is contained in:
parent
809db4ee24
commit
895d9d2c82
@ -248,8 +248,8 @@ func (w *BufWindow) Relocate() bool {
|
|||||||
w.StartCol = cx
|
w.StartCol = cx
|
||||||
ret = true
|
ret = true
|
||||||
}
|
}
|
||||||
if cx+w.gutterOffset+rw > w.StartCol+w.Width {
|
if cx+rw > w.StartCol+w.bufWidth {
|
||||||
w.StartCol = cx - w.Width + w.gutterOffset + rw
|
w.StartCol = cx - w.bufWidth + rw
|
||||||
ret = true
|
ret = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user