From 25823752b3a26bbf0618b401bc9791702bce2961 Mon Sep 17 00:00:00 2001 From: Jason Phan Date: Thu, 21 Mar 2019 08:19:22 -0500 Subject: [PATCH] client: Fix prompt masking Entering 23 characters at a prompt resulted in 9 extra characters being added to the line. At this point, you would only be abel to backspace until the 9th character. It seems that claling both rl_replace_line("", 0) and rl_redisplay() before rl_replace_line(masked_input.mask, 0) causes this to happen. Both calls are redundant anyways as iwctl functions exactly the same without them (plus no more bug). --- client/display.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/display.c b/client/display.c index b57a0e20..c08f628e 100644 --- a/client/display.c +++ b/client/display.c @@ -427,8 +427,6 @@ static void mask_input(void) masked_input.mask[len - 1] = '*'; } - rl_replace_line("", 0); - rl_redisplay(); rl_replace_line(masked_input.mask, 0); rl_point = point; rl_redisplay();