Allow using up to a UTF-32 codepoint as a password asterisk (closes #715)

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2025-03-06 21:16:24 +01:00
parent f2ca72eace
commit e19a23b54c
4 changed files with 6 additions and 4 deletions

View File

@@ -19,9 +19,9 @@ visible_length: usize,
x: usize,
y: usize,
masked: bool,
maybe_mask: ?u8,
maybe_mask: ?u32,
pub fn init(allocator: Allocator, buffer: *TerminalBuffer, masked: bool, maybe_mask: ?u8) Text {
pub fn init(allocator: Allocator, buffer: *TerminalBuffer, masked: bool, maybe_mask: ?u32) Text {
const text = DynamicString.init(allocator);
return .{