Files
Netcatty/components
bincxzandCopilot fa3f17fa32 fix(autocomplete): prevent popup from rendering below visible terminal screen (#1710)
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>
2026-06-26 15:46:10 +08:00
..
2026-06-23 01:26:12 +08:00
2026-06-26 02:17:15 +08:00
2026-06-26 02:43:59 +08:00
2026-06-23 01:49:57 +08:00
2026-05-07 12:57:54 +08:00
2026-06-26 15:22:52 +08:00