predictive echo: make the password check more broad

This commit is contained in:
Wez Furlong committed 2020-03-13 21:14:05 -07:00
1 parent cfc22c1fcb
commit 382b8f53dd
1 file changed
+1 -1
+1 -1
View File
@@ -140,7 +140,7 @@ impl RenderableInner {
/// handle.
fn apply_prediction(&mut self, c: KeyCode, line: &mut Line) {
let text = line.as_str();
if text.contains("sword:") {
if text.contains("sword") {
// This line might be a password prompt. Don't force
// on local echo here, as we don't want to reveal content
// from their password