fix password not being cleared when blank_password is set

This commit is contained in:
nullgemm
2020-02-03 08:34:42 +01:00
parent 33934f3ab2
commit 825544f7e2
4 changed files with 15 additions and 1 deletions

View File

@@ -258,3 +258,11 @@ void input_text_backspace(struct text* target)
input_text_delete(target);
}
}
void input_text_clear(struct text* target)
{
memset(target->text, 0, target->len + 1);
target->cur = target->text;
target->end = target->text;
target->visible_start = target->text;
}