mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
fix(folds): fix missing virt_lines above when fold is hidden (#24274)
This commit is contained in:
@@ -508,11 +508,9 @@ void grid_put_linebuf(ScreenGrid *grid, int row, int coloff, int endcol, int cle
|
||||
// 2: occupies two display cells
|
||||
int start_dirty = -1, end_dirty = 0;
|
||||
|
||||
assert(row < grid->rows);
|
||||
// TODO(bfredl): check all callsites and eliminate
|
||||
// Check for illegal row and col, just in case
|
||||
if (row >= grid->rows) {
|
||||
row = grid->rows - 1;
|
||||
}
|
||||
// Check for illegal col, just in case
|
||||
if (endcol > grid->cols) {
|
||||
endcol = grid->cols;
|
||||
}
|
||||
|
Reference in New Issue
Block a user