mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-12 19:32:36 +01:00
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:
parent
45a51613c4
commit
25823752b3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user