Skip to content

Commit

Permalink
Simplified logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-incubiq committed Nov 29, 2024
1 parent 092ad2d commit 76b19c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inquire/src/prompts/password/prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@ where
}
}
PasswordDisplayMode::UnmaskedLastChar => {
if self.confirmation_stage || !self.appending_chars {
backend.render_prompt_with_masked_input(self.message, &self.input)?;
} else if self.appending_chars {
if !self.confirmation_stage && self.appending_chars {
backend
.render_prompt_with_unmasked_last_char_input(self.message, &self.input)?;
} else {
backend.render_prompt_with_masked_input(self.message, &self.input)?;
}

if self.confirmation_stage {
Expand Down

0 comments on commit 76b19c1

Please sign in to comment.