Skip to content

Commit ffaee10

Browse files
committed
fix backspacing oopsie
visual bug
1 parent abce8f1 commit ffaee10

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mochaexec"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
edition = "2024"
55
description = "sudo if it was actually good. for responsible adults only."
66
readme = "README.md" # who is the idiot that doesn't know this???

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn prompt_password(prompt: &str) -> io::Result<String> {
104104
Ok(termion::event::Key::Char('\n')) | Ok(termion::event::Key::Char('\r')) => break,
105105
Ok(termion::event::Key::Backspace) => {
106106
if password.pop().is_some() {
107-
write!(tty, "\x08")?;
107+
write!(tty, "\x08 \x08")?;
108108
tty.flush()?;
109109
}
110110
}

0 commit comments

Comments
 (0)