newline tui tweak

This commit is contained in:
Roy Han
2026-03-03 10:37:52 -08:00
parent d650a9391f
commit 78c3847ee4
2 changed files with 4 additions and 0 deletions

View File

@@ -160,6 +160,7 @@ impl PatchLayout {
+ self.header_height
+ 1
+ self.options_height
+ 1
+ self.hint_lines.len() as u16
+ self.notes_height
+ self.validation_lines.len() as u16
@@ -220,6 +221,7 @@ impl PatchLayout {
"No options",
);
cursor_y = cursor_y.saturating_add(self.options_height);
cursor_y = cursor_y.saturating_add(1);
for line in &self.hint_lines {
Paragraph::new(line.clone()).render(
@@ -273,6 +275,7 @@ impl PatchLayout {
+ self.header_height
+ 1
+ self.options_height
+ 1
+ self.hint_lines.len() as u16;
let validation_height = self.validation_lines.len() as u16;
Some(Rect {

View File

@@ -17,4 +17,5 @@ expression: terminal.backend().vt100().screen().contents()
1. Yes, proceed (y)
2. Yes, and don't ask again for these files (a)
3. No, and tell Codex what to do differently (tab)
Press enter to confirm or esc to cancel