Proper scrollbar location for hsplits
This commit is contained in:
parent
9127152d93
commit
88b8fc713d
1 changed files with 1 additions and 1 deletions
|
@ -651,7 +651,7 @@ func (w *BufWindow) displayScrollBar() {
|
|||
if barsize < 1 {
|
||||
barsize = 1
|
||||
}
|
||||
barstart := int(float64(w.StartLine) / float64(w.Buf.LinesNum()) * float64(w.Height))
|
||||
barstart := w.Y + int(float64(w.StartLine)/float64(w.Buf.LinesNum())*float64(w.Height))
|
||||
for y := barstart; y < util.Min(barstart+barsize, w.Y+bufHeight); y++ {
|
||||
screen.Screen.SetContent(scrollX, y, '|', nil, config.DefStyle.Reverse(true))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue