mirror of
https://github.com/openai/codex.git
synced 2026-09-14 11:57:03 +00:00
newline tui tweak
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user