rework section loading

This commit is contained in:
steven-omaha
2023-01-09 19:06:51 +01:00
parent 4907787911
commit 26c1e317bd
8 changed files with 32 additions and 14 deletions
+1 -1
View File
@@ -4,5 +4,5 @@ pub(crate) fn get_user_confirmation() -> bool {
print!("Continue? [Y/n] ");
std::io::stdout().flush().unwrap();
let reply = std::io::stdin().lock().lines().next().unwrap().unwrap();
!(reply.is_empty() || reply.to_lowercase().contains('y'))
reply.trim().is_empty() || reply.to_lowercase().contains('y')
}