mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-16 22:10:26 +00:00
Fix Scrollbar covering cursor (#3741)
This commit is contained in:
parent
809db4ee24
commit
895d9d2c82
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue