table: Fix Table subtract with overflow error. (#602)

```
thread 'main' panicked at gpui-component-f2cfc37a601d48ab/dffb419/crates/ui/src/[table.rs:1562](http://table.rs:1562/):45:
attempt to subtract with overflow
stack backtrace:
```
This commit is contained in:
Jason Lee 2025-02-05 19:26:19 +08:00 committed by GitHub
parent 9675f1e02b
commit bc579c0b93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1559,7 +1559,7 @@ where
}
let mut items = Vec::with_capacity(
visible_range.end - visible_range.start,
visible_range.end.saturating_sub(visible_range.start),
);
// Render fake rows to fill the table