Skip to content

fix(table): clip rendering to buffer bounds - #2851

Merged
orhun merged 2 commits into
ratatui:mainfrom
ronitgupta138:fix/table-clip-buffer-bounds
Oct 24, 2026
Merged

orhun merged 2 commits into
ratatui:mainfrom
ronitgupta138:fix/table-clip-buffer-bounds

Conversation

@ronitgupta138

Copy link
Copy Markdown
Contributor

Table can panic or render out of bounds when drawing into an area extending outside the buffer. Clip Table to the buffer before drawing blocks and items, and return when the intersection is empty.

Add direct rendering tests for empty/disjoint areas and partial overlap with an offset buffer for Table.

Completes the buffer bounds clipping pass across widgets from #2817-#2821, #2841, and #2850.

Copilot AI balanced review requested due to automatic review settings October 21, 2026 11:43
@ronitgupta138
ronitgupta138 requested a review from a team as a code owner October 21, 2026 11:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.8%. Comparing base (6fbb019) to head (d0408c1).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #2851   +/-   ##
=====================================
  Coverage   92.8%   92.8%           
=====================================
  Files        106     106           
  Lines      21850   21866   +16     
=====================================
+ Hits       20298   20313   +15     
- Misses      1552    1553    +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@orhun
orhun enabled auto-merge (squash) October 24, 2026 20:02
@orhun
orhun merged commit b5224b2 into ratatui:main Oct 24, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants