fix(grid): do not crash when reflowing lines with an empty top buffer (#211)
This commit is contained in:
parent
6d623b3f1e
commit
54c500b230
1 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ fn transfer_rows_down(
|
|||
}
|
||||
None => vec![Row::from_rows(next_lines)],
|
||||
};
|
||||
if next_lines.is_empty() {
|
||||
// no more lines at source, the line we popped was probably empty
|
||||
break;
|
||||
}
|
||||
}
|
||||
None => break, // no more rows
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue