aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-05-02 19:07:46 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2017-05-10 17:36:34 +0200
commit3adcc0c50bd40e80928f1c96a908ce65def16fe9 (patch)
tree01880ea11a6e4f9d769bafcb87d3a437508fbb37 /src
parente82cb5de4adc8a88e8213d0aca85400362df4bd1 (diff)
downloadrneovim-3adcc0c50bd40e80928f1c96a908ce65def16fe9.tar.gz
rneovim-3adcc0c50bd40e80928f1c96a908ce65def16fe9.tar.bz2
rneovim-3adcc0c50bd40e80928f1c96a908ce65def16fe9.zip
os/shell.c: temporary solution to not put ctrl chars on the screen grid
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/shell.c7
1 files changed, 4 insertions, 3 deletions
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++;