this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

widgets(table): fixed an issue w/ active row contents causing the last few rows to disappear

authored by

00JCIV00 and committed by
Tim Culverhouse
eaa9c158 2580a8fc

+2 -2
+2 -2
src/widgets/Table.zig
··· 235 235 const max_items = 236 236 if (data_items.len > table_win.height -| 1) table_win.height -| 1 else data_items.len; 237 237 var end = table_ctx.start + max_items; 238 - if (table_ctx.row + table_ctx.active_y_off >= end -| 1) 238 + if (table_ctx.row + table_ctx.active_y_off >= win.height -| 2) 239 239 end -|= table_ctx.active_y_off; 240 240 if (end > data_items.len) end = data_items.len; 241 241 table_ctx.start = tableStart: { ··· 250 250 break :tableStart table_ctx.start; 251 251 }; 252 252 end = table_ctx.start + max_items; 253 - if (table_ctx.row + table_ctx.active_y_off >= end -| 1) 253 + if (table_ctx.row + table_ctx.active_y_off >= win.height -| 2) 254 254 end -|= table_ctx.active_y_off; 255 255 if (end > data_items.len) end = data_items.len; 256 256 table_ctx.start = @min(table_ctx.start, end);