mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-21 23:50:45 +00:00
Two related fixes for the autocomplete popup flipping below the visible terminal area when navigating suggestions with the cursor at the bottom: 1. Clamp popup bounds to the actual .xterm-screen rect instead of the .xterm-container rect. The container can be a few pixels taller due to padding/rounding, which created a false positive spaceBelow value and caused short suggestion lists to flip downward off-screen. 2. Refresh the popup anchor after live-preview writes and after sub-dir panels update. Cursor movement from preview text or width changes from sub-dir panels could leave the stored anchor stale. Add unit tests covering short-popup bottom-row placement, clamp viewport using the screen rect, and split-pane precedence. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>