Keep cursor's position consistent when passphrase is reaching
its maximum by adding characters in the middle of the string
This isn't practical behavior.
---
client/display.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/client/display.c b/client/display.c
index 74b50e2e..fc280d31 100644
--- a/client/display.c
+++ b/client/display.c
@@ -408,7 +408,9 @@ static void mask_input(void)
return;
if (rl_end > MAX_PASSPHRASE_LEN) {
- rl_point = rl_end = MAX_PASSPHRASE_LEN;
+ rl_end = MAX_PASSPHRASE_LEN;
+ rl_point = masked_input.point;
+
goto set_mask;
}
--
2.13.6