widgets(nvim): fix scroll down
This commit is contained in:
parent
cbfa56bb1b
commit
0fe1142989
1 changed files with 1 additions and 2 deletions
|
@ -568,8 +568,7 @@ pub fn Nvim(comptime T: type) type {
|
|||
if (row + rows > bot) break;
|
||||
var col: usize = left;
|
||||
while (col < right) : (col += 1) {
|
||||
if (row + rows < self.screen.height) return;
|
||||
const cell = self.screen.readCell(col, row + rows) orelse unreachable;
|
||||
const cell = self.screen.readCell(col, row + rows) orelse return;
|
||||
self.screen.writeCell(col, row, cell);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue