aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/question.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/question.rs b/src/gui/question.rs
index 8f9ee19..95f3163 100644
--- a/src/gui/question.rs
+++ b/src/gui/question.rs
@@ -64,7 +64,7 @@ pub fn ask<B: Backend>(
let question = Paragraph::new(util::center_vertically(chunks[1], &card.question))
.style(match state.answer {
Answer::Write => {
- if state.input.is_empty() {
+ if state.input.trim().is_empty() {
Style::default().fg(Color::Yellow)
} else {
Style::default()