issue-489-and-491 #492

Merged
navicore merged 3 commits from issue-489-and-491 into main 2026-05-19 00:13:47 +00:00
Owner
https://git.navicore.tech/navicore/patch-seq/issues/491
- Cargo.toml: enabled unstable-rendered-line-info on ratatui so we can call Paragraph::line_count.
  - crates/repl/src/ui/repl_pane.rs: replaced the hand-rolled wrapped_height (which used ceil(chars/width) and was
   wrong whenever a single word overflowed a remaining-line gap) with paragraph.line_count(area.width). That asks
  ratatui's own WordWrapper for the exact display height, so the scroll math now matches what's actually rendered.

  The earlier Stdio::null() change in run.rs is a separate hardening — not the cause, but still a good thing to
  leave in (children running under the REPL should never share its raw-mode TTY). Let me know if you'd rather I
  revert that one; otherwise it stays.

  Try repeating your repro (ESC k ENTER on the keypair line, or the long-X-line spam) — the input prompt should
  now stay pinned above the bottom edge regardless of word length.
fix applied:
Some checks failed
CI - Linux / CI - Linux x86_64 (pull_request) Failing after -4s
4dbe9e9fc7
- Cargo.toml: enabled unstable-rendered-line-info on ratatui so we can call Paragraph::line_count.
  - crates/repl/src/ui/repl_pane.rs: replaced the hand-rolled wrapped_height (which used ceil(chars/width) and was
   wrong whenever a single word overflowed a remaining-line gap) with paragraph.line_count(area.width). That asks
  ratatui's own WordWrapper for the exact display height, so the scroll math now matches what's actually rendered.

  The earlier Stdio::null() change in run.rs is a separate hardening — not the cause, but still a good thing to
  leave in (children running under the REPL should never share its raw-mode TTY). Let me know if you'd rather I
  revert that one; otherwise it stays.

  Try repeating your repro (ESC k ENTER on the keypair line, or the long-X-line spam) — the input prompt should
  now stay pinned above the bottom edge regardless of word length.
fmt
All checks were successful
CI - Linux / CI - Linux x86_64 (pull_request) Successful in 8m33s
09872c6505
navicore deleted branch issue-489-and-491 2026-05-19 00:13:47 +00:00
Sign in to join this conversation.
No description provided.