diff options
-rw-r--r-- | src/gui/question.rs | 5 |
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(), |