bincxz and Copilot
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-26 15:46:10 +08:00
2026-06-26 01:17:59 +08:00
2026-06-26 15:22:52 +08:00
2026-06-25 19:13:17 +08:00
2026-06-25 19:13:17 +08:00
2026-06-22 18:57:47 +08:00
2026-06-22 18:57:47 +08:00
2026-06-22 11:03:11 +08:00
2026-05-26 02:03:33 +08:00
2026-05-25 14:39:49 +08:00
2026-06-10 15:18:37 +08:00
2026-06-10 15:18:37 +08:00
2026-05-25 14:39:02 +08:00
2026-05-25 14:39:02 +08:00
2026-03-03 19:27:37 +08:00
2026-04-23 10:01:02 +08:00
2026-06-09 20:11:12 +08:00
2026-06-23 20:08:43 +08:00
2026-06-23 20:08:43 +08:00
2026-04-23 02:06:26 +08:00
2026-05-21 15:40:35 +08:00
2026-05-21 15:40:35 +08:00
2026-05-09 23:42:08 +08:00
2026-05-09 23:42:08 +08:00
2026-05-12 20:14:24 +08:00
2026-06-24 14:16:16 +08:00
2026-06-24 14:16:16 +08:00
2026-06-24 14:16:16 +08:00
2026-05-22 23:58:57 +08:00
2026-06-22 16:34:28 +08:00
2026-06-24 01:20:28 +08:00
2026-06-24 01:21:21 +08:00
2026-06-24 01:21:21 +08:00
2026-06-23 20:25:16 +08:00
2026-06-23 14:11:03 +08:00
2026-05-28 15:12:19 +08:00
2026-05-28 15:12:19 +08:00
2026-05-16 20:44:05 +08:00
2026-05-16 20:44:05 +08:00
2026-06-23 00:24:39 +08:00
2026-06-23 00:24:39 +08:00
2026-06-06 18:59:48 +08:00
2026-06-14 01:30:44 +08:00
2026-06-25 10:15:39 +08:00
2026-06-25 10:15:39 +08:00
2026-06-24 01:27:20 +08:00
2026-06-24 01:20:28 +08:00
2026-05-26 02:03:33 +08:00
2026-03-27 01:39:02 +08:00
2026-06-10 01:10:33 +08:00
2026-06-26 15:46:10 +08:00
2026-06-22 18:57:47 +08:00
2026-06-22 18:57:47 +08:00
2026-06-10 15:18:37 +08:00
2026-06-17 21:37:50 +08:00
2026-06-17 21:37:50 +08:00
2026-06-17 21:37:50 +08:00
2026-06-26 01:34:29 +08:00
2026-06-26 01:34:29 +08:00
2026-06-22 18:57:47 +08:00
2026-06-22 18:57:47 +08:00
2026-06-12 16:56:48 +08:00
2026-06-26 01:34:29 +08:00
2026-06-26 01:34:29 +08:00
2026-06-26 01:34:29 +08:00
2026-05-09 23:42:08 +08:00
2026-06-26 01:34:29 +08:00
2026-06-26 01:34:29 +08:00
2026-06-24 23:52:03 +08:00
2026-06-24 23:52:03 +08:00
2026-06-25 09:42:19 +08:00
2026-05-12 20:14:24 +08:00
2026-06-24 23:52:03 +08:00
2026-06-24 23:52:03 +08:00
2026-06-26 01:17:59 +08:00
2026-06-22 22:04:33 +08:00
2026-06-23 01:26:12 +08:00
2026-06-25 10:15:39 +08:00
2026-06-25 10:15:39 +08:00
2026-06-22 23:59:32 +08:00
2026-06-22 22:04:33 +08:00
2026-04-10 21:30:25 +08:00
2026-06-22 22:04:33 +08:00
2026-06-22 22:04:33 +08:00
2026-06-14 01:30:44 +08:00
2026-06-14 01:30:44 +08:00
2026-05-18 11:53:14 +08:00
2026-06-26 15:22:52 +08:00
2026-06-26 01:34:29 +08:00
2026-05-23 12:20:20 +08:00
2026-06-20 11:26:50 +08:00