Always display quit (#894)

you can always press q to quit so it should also always be displayed
This commit is contained in:
Sandro 2022-04-11 18:46:16 +02:00 committed by GitHub
parent 5ecf8300ef
commit 9ed518c82a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,13 +228,9 @@ impl Terminal {
self.term
.write_fmt(format_args!(
"\n{}",
style(format!(
"{}Retry? (y)es/(N)o/(s)hell{}",
self.prefix,
if interrupted { "/(q)uit" } else { "" }
))
.yellow()
.bold()
style(format!("{}Retry? (y)es/(N)o/(s)hell/(q)uit", self.prefix))
.yellow()
.bold()
))
.ok();