commit | 25823752b3a26bbf0618b401bc9791702bce2961 | [log] [tgz] |
---|---|---|
author | Jason Phan <xor.jasonphan@gmail.com> | Thu Mar 21 08:19:22 2019 -0500 |
committer | Denis Kenzior <denkenz@gmail.com> | Thu Mar 21 16:16:59 2019 -0500 |
tree | 384895131481e4328cb8749cde044ea710c76f3d | |
parent | 45a51613c4c24067fe0e35b4c084a50124282b36 [diff] |
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).