Closed Cretezy closed 2 weeks ago
@Cretezy can you please check that https://github.com/ratatui-org/ratatui/pull/1187 solves your issue (See https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch-section for info on overriding deps).
@joshka Apologies for the delay (was away this weekend). The fix does work! Thank you very much
@joshka Apologies for the delay (was away this weekend). The fix does work! Thank you very much
Thanks for testing the fix. If you need it in a released crate, It will be available in the next 0.27.0-alpha release (these automatically come out on Saturdays), and a full release in the few of weeks.
Thanks. I am going to wait for the next full release.
This is the workaround I did in the meantime: https://github.com/Cretezy/lazyjj/commit/fcf9e104103d4656ae0cd2b961c9c85e7923bd90#diff-e49e07cbead444edb2dcd3b3dedd55ebd006f01f72af1cd16ef3f9b71ad857f2R33
Description
TableState
is calculating wrong row bounds, causingoffset
to be reset to 0. This means thatoffset
is broken onTableState
.To Reproduce
Expected behavior
When pressing
j
, the second column (which istable_state.offset()
) should increment to 1, then 2, then 3, etc.Currently, it goes to 1, then gets reset to 0 on the next render.
Environment