From a569fb46a8ea93acc04eb545a27aa7d4adfb511a Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Thu, 7 Sep 2023 18:04:34 +0200 Subject: [PATCH] char editor: display space when uninitialized --- nested/src/editors/char/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nested/src/editors/char/mod.rs b/nested/src/editors/char/mod.rs index 91dc3f4..6e5eb49 100644 --- a/nested/src/editors/char/mod.rs +++ b/nested/src/editors/char/mod.rs @@ -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() )