char editor: display space when uninitialized

This commit is contained in:
Michael Sippel 2023-09-07 18:04:34 +02:00
parent 3aec30e32a
commit a569fb46a8
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -84,7 +84,7 @@ impl CharEditor {
)
.set_view(data
.get_port()
.map(move |c| TerminalAtom::from(c))
.map(move |c| TerminalAtom::from(if c == '\0' { ' ' } else { c }))
.to_grid()
)
.set_cmd( editor.clone() )