mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
Fix Scrollbar covering cursor
This commit is contained in:
parent
91832d0016
commit
113c7bc68b
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user