diff --git a/cursor.go b/cursor.go index f2fa871..7f0961b 100644 --- a/cursor.go +++ b/cursor.go @@ -124,6 +124,10 @@ func (c *Cursor) Format() string { // FormatMask replaces all input runes with the mask rune. func (c *Cursor) FormatMask(mask rune) string { + if mask == ' ' { + return format([]rune{}, c) + } + r := make([]rune, len(c.input)) for i := range r { r[i] = mask