Skip to content

Commit

Permalink
fix: input - set default prompt to '> ' (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
roele authored Jan 22, 2024
1 parent 4b16f77 commit 265f639
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ impl Input {
title: title.into(),
description: String::new(),
placeholder: String::new(),
prompt: String::new(),
prompt: "> ".to_string(),
input: String::new(),
inline: false,
password: false,
@@ -203,6 +203,8 @@ impl Input {
true => write!(out, ">")?,
false => write!(out, " {}", self.prompt)?,
}
} else {
write!(out, " ")?;
}
out.reset()?;

0 comments on commit 265f639

Please sign in to comment.