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).
This commit is contained in:
Jason Phan 2019-03-21 08:19:22 -05:00 committed by Denis Kenzior
parent 45a51613c4
commit 25823752b3
1 changed files with 0 additions and 2 deletions

View File

@ -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();