eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 25823752b3a26bbf0618b401bc9791702bce2961
parent 45a51613c4c24067fe0e35b4c084a50124282b36
Author: Jason Phan <xor.jasonphan@gmail.com>
Date:   Thu, 21 Mar 2019 08:19:22 -0500

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).

Diffstat:
Mclient/display.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git 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();