mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
client: Update rl_point to last known position
Keep cursor's position consistent when passphrase is reaching its maximum by adding characters in the middle of the string The use case is very rare as not many people will attempt to modify the masked passphrase from the middle.
This commit is contained in:
parent
17ee4196f4
commit
f20298dc4a
@ -408,7 +408,9 @@ static void mask_input(void)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (rl_end > MAX_PASSPHRASE_LEN) {
|
if (rl_end > MAX_PASSPHRASE_LEN) {
|
||||||
rl_point = rl_end = MAX_PASSPHRASE_LEN;
|
rl_end = MAX_PASSPHRASE_LEN;
|
||||||
|
rl_point = masked_input.point;
|
||||||
|
|
||||||
goto set_mask;
|
goto set_mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user