aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/question.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/question.rs b/src/gui/question.rs
index 95f3163..851c0af 100644
--- a/src/gui/question.rs
+++ b/src/gui/question.rs
@@ -75,7 +75,10 @@ pub fn ask<B: Backend>(
.alignment(Alignment::Center);
f.render_widget(question, chunks[1]);
- let formatted_input = format!("{}█", state.input);
+ let formatted_input = match state.answer {
+ Answer::Write => format!("{}█", state.input),
+ _ => state.input.clone()
+ };
let answer = Paragraph::new(util::center_vertically(chunks[2], &formatted_input))
.style(match state.answer {
Answer::Write => Style::default(),