Fix scroll when vertical offset is exactly layout_height (#401)
This commit is contained in:
parent
3b1aa511d1
commit
f9e43cf355
1 changed files with 1 additions and 2 deletions
|
|
@ -465,8 +465,7 @@ impl Buffer {
|
|||
}
|
||||
|
||||
// Adjust scroll.vertical to be smaller by moving scroll.line forwards
|
||||
//TODO: do we want to adjust it exactly to a layout line?
|
||||
if line_i == self.scroll.line && layout_height < self.scroll.vertical {
|
||||
if line_i == self.scroll.line && layout_height <= self.scroll.vertical {
|
||||
self.scroll.line += 1;
|
||||
self.scroll.vertical -= layout_height;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue