From 3adcc0c50bd40e80928f1c96a908ce65def16fe9 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Tue, 2 May 2017 19:07:46 +0200 Subject: os/shell.c: temporary solution to not put ctrl chars on the screen grid --- src/nvim/os/shell.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/nvim/os/shell.c') diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c index fc8ab7dc8f..1a40309655 100644 --- a/src/nvim/os/shell.c +++ b/src/nvim/os/shell.c @@ -464,9 +464,10 @@ static void out_data_append_to_screen(char *output, size_t remaining, continue; } - // Translate NUL to SOH - if (output[off] == NUL) { - output[off] = 1; + // TODO(bfredl): using msg_puts would be better until + // terminal emulation is implemented. + if (output[off] < 0x20) { + output[off] = ' '; } off++; -- cgit